/* VARIABLES */
:root {
  --ink: #202936;
  --muted: #7d8795;
  --line: #e7ebf0;
  --blue: #2d6cdf;
  --blue-soft: #edf4ff;
  --bg: #f4f6f9;
  --panel: #fff;
  --green: #51b992;
  --red: #dc4b4b;
  --shadow: 0 18px 55px rgba(37,48,65,.08);
  --radius: 18px;
}

/* RESET */
* {
  box-sizing: border-box;
}
button,input,select,textarea {
  font: inherit;
}
button {
  border: 0;
  cursor: pointer;
}
html,body {
  margin: 0;
  min-height: 100%;
  font-family: -apple-system,BlinkMacSystemFont,"SF Pro Display","Segoe UI",sans-serif;
  color: var(--ink);
  background: var(--bg);
}
/* A vízszintes túlcsordulás elleni védelem KIZÁRÓLAG a html elemen –
   a document.scrollingElement ez az oldalon (nem a body). Ha ugyanez a
   szabály a body-n IS szerepelne, a body a html mellett egy MÁSODIK,
   de ténylegesen sosem görgető "scroll containerré" válna – ez pontosan
   az a böngésző-viselkedés, ami miatt minden position:sticky elem
   (pl. az aside bal oldali navigáció) hatástalanná válna: a sticky a
   hozzá legközelebbi scroll containerhez (body) pozicionálódna, nem a
   ténylegesen görgető html-hez. Csak a html-en tartva a szabályt a
   vízszintes túlcsordulás-védelem megmarad, a sticky viselkedés pedig
   helyesen a valódi (html-szintű) lapgörgetéshez igazodik. */
html {
  overflow-x: hidden;
}

/* BASE */
.ghost {
  background: transparent;
  color: var(--muted);
  text-align: left;
  padding: 9px 8px;
  border-radius: 10px;
  font-size: 11px;
}
.ghost:hover {
  background: #f0f2f6;
  color: var(--ink);
}
.primary {
  background: var(--blue);
  color: #fff;
  border-radius: 11px;
  padding: 10px 14px;
  font-weight: 700;
  box-shadow: 0 5px 14px rgba(45,108,223,.23);
}
.primary:hover {
  background: #245ec3;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(37,45,63,.045);
}
.disabled {
  opacity: .45;
  pointer-events: none;
}
.auth-screen {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: linear-gradient(145deg,#f7f9fc,#eef3f9);
  display: grid;
  place-items: center;
  padding: 20px;
}
.auth-card {
  width: min(410px,100%);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 23px;
  padding: 29px;
  box-shadow: 0 24px 70px rgba(37,45,63,.14);
}
.auth-logo {
  width: 43px;
  height: 43px;
  border-radius: 13px;
  background: var(--blue);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 20px;
  margin-bottom: 17px;
}
.auth-card h1 {
  margin: 0 0 6px;
  font-size: 25px;
}
.auth-card>p {
  color: var(--muted);
  margin: 0 0 19px;
  font-size: 11px;
}
.auth-card label {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin: 11px 0 5px;
}
.auth-card input {
  width: 100%;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 11px;
  outline: none;
}
.auth-submit {
  width: 100%;
  margin-top: 17px;
}
.auth-switch {
  display: block;
  margin: 11px auto 0;
  background: transparent;
  color: var(--blue);
  font-size: 10px;
}
.auth-error {
  min-height: 17px;
  margin-top: 9px;
  color: var(--red);
  font-size: 10px;
}
.bottom-nav {
  display: none;
}
.recurrence-field select:disabled {
  opacity: .55;
  background: #f3f5f8;
}

/* LAYOUT */
.app {
  width: min(1450px,calc(100% - 36px));
  min-height: calc(100vh - 44px);
  margin: 22px auto;
  background: #fff;
  border: 1px solid #e5e9ef;
  border-radius: 27px;
  /* NINCS overflow:hidden itt szándékosan (lásd korábbi verzió) — az
     overflow:hidden/auto/scroll bármely ÉRTÉKE "scroll containert" hoz
     létre a CSS szerint, FÜGGETLENÜL attól, hogy ténylegesen görgethető-e.
     Az aside position:sticky-je emiatt ehhez a (sosem görgető, mert a
     .app magassága a min-height miatt mindig a tartalomhoz igazodik)
     "scroll containerhez" pozicionálódott volna a valódi lapgörgetés
     helyett, és sosem ragadt volna ki a helyéről. A lekerekített sarkak
     vágását emiatt közvetlenül az aside/main saját sarok-lekerekítése adja
     (lásd lent), nem a .app-ra rakott overflow:hidden. */
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 220px minmax(0,1fr);
}
main {
  min-width: 0;
  background: #fff;
  border-top-right-radius: 27px;
  border-bottom-right-radius: 27px;
}
.layout {
  display: grid;
  grid-template-columns: minmax(0,1fr) 240px;
  gap: 20px;
  margin: 31px 42px 90px;
}
.side-stack {
  display: grid;
  gap: 15px;
  align-content: start;
}
.app.auth-hidden {
  display: none;
}

/* SIDEBAR */
aside {
  background: #fbfbfc;
  border-right: 1px solid var(--line);
  padding: 25px 16px;
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 44px);
  /* Long pages (pl. Pénzügyek) magasabbra nyújtják a .app grid sorát, mint a
     viewport – .app grid alapértelmezetten stretch-eli az asidet erre a
     teljes sor-magasságra. align-self:start ezt felülírja, hogy az aside
     saját tartalmának (ill. a min-height-nek) megfelelő magasságú maradjon,
     így a sticky pozicionálásnak legyen "helye" elmozdulni – enélkül a
     sticky hatástalan lenne (az aside már eleve olyan magas lenne, mint a
     teljes oldal). Csak >800px szélesség felett aktív – lásd a 800px-es
     media query, ami alatta display:none-ra állítja az asidet (mobil
     alsó navigáció veszi át a helyét, azt ez a szabály nem érinti). */
  align-self: start;
  position: sticky;
  top: 22px;
  max-height: calc(100vh - 44px);
  overflow-y: auto;
  /* A .app saját overflow:hidden-je helyett (lásd ott) az aside/main saját
     sarok-lekerekítése adja a vágást a .app szegélyénél. */
  border-top-left-radius: 27px;
  border-bottom-left-radius: 27px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 4px 28px;
}
.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: linear-gradient(145deg,#3b7bea,#2665d2);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 14px rgba(45,108,223,.25);
}
.brand strong,.brand small {
  display: block;
}
.brand strong {
  font-size: 14px;
}
.brand small {
  font-size: 10px;
  color: var(--muted);
  margin-top: 2px;
}
.family-select {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 11px 10px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 17px;
}
.side-label {
  padding: 4px 8px 9px;
  color: #9aa2ad;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .1em;
}
.people {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.person:hover,.person.active {
  background: var(--blue-soft);
}
.person small {
  display: block;
  color: var(--muted);
  font-size: 9px;
  font-weight: 400;
  margin-top: 2px;
}
.avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #eef1f5;
  font-size: 16px;
  flex: none;
}
.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  margin-left: auto;
}
.side-check:checked {
  border-color: var(--blue);
  background: var(--blue);
}
.side-check:checked:after {
  content: "";
  width: 6px;
  height: 3px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) translateY(-1px);
}
#addPersonBtn {
  margin-top: 6px;
}
.side-actions {
  margin-top: auto;
  display: grid;
  gap: 3px;
}
.logout-button {
  color: #c34843!important;
}
.person {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px;
  border-radius: 13px;
  background: transparent;
  text-align: left;
  color: var(--ink);
  cursor: pointer;
}
.person>span:nth-of-type(2) {
  font-size: 16px;
  font-weight: 400;
}
.side-check {
  appearance: none;
  width: 15px;
  height: 15px;
  border: 1.5px solid #c7d0dc;
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-content: center;
  flex: none;
  transition: .15s;
}
.side-check.is-on {
  border-color: var(--blue);
  background: var(--blue);
}
.side-check.is-on:after {
  content: "";
  width: 6px;
  height: 3px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) translateY(-1px);
}

/* HEADER */
.topbar {
  height: 78px;
  border-bottom: 1px solid var(--line);
  padding: 0 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}
.eyebrow {
  font-size: 10px;
  color: var(--muted);
  text-transform: capitalize;
  margin-bottom: 3px;
}
.title {
  margin: 0;
  font-size: 22px;
  letter-spacing: -.04em;
}
.subtitle {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 10px;
}

/* MAIN VIEW */
.view-card {
  border: 0;
  box-shadow: none;
  border-radius: 0;
}
.view-head h2 {
  margin: 0;
  font-size: 19px;
}
.segmented {
  display: flex;
  padding: 3px;
  background: #f0f2f5;
  border-radius: 10px;
  gap: 2px;
}
.segmented button {
  background: transparent;
  padding: 7px 10px;
  border-radius: 8px;
  color: #87909e;
  font-size: 11px;
}
.segmented button.active {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 2px 7px rgba(32,41,54,.09);
}
.period-nav {
  width: min(380px,100%);
  margin: 24px 0 17px;
  padding: 4px;
  border-radius: 12px;
}
.period-nav button {
  flex: 1;
  padding: 9px 18px;
  font-size: 11px;
  font-weight: 750;
}
.day-strip {
  display: flex;
  gap: 7px;
  overflow: auto;
  padding: 0 0 6px;
  margin-bottom: 18px;
}
.day {
  min-width: 58px;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 11px;
  text-align: center;
  color: var(--ink);
}
.day b,.day small {
  display: block;
}
.day b {
  font-size: 11px;
}
.day small {
  font-size: 9px;
  color: var(--muted);
  margin-top: 3px;
}
.day.today {
  background: #202936;
  border-color: #202936;
  color: #fff;
}
.day.today small {
  color: #cbd1da;
}
.day-strip[hidden] {
  display: none!important;
}
.empty {
  color: var(--muted);
  font-size: 11px;
  padding: 12px 0;
}
.week-view {
  display: grid;
  gap: 17px;
}
.week-day {
  border-top: 1px solid var(--line);
  padding-top: 11px;
}
.week-day:first-child {
  border-top: 0;
}
.week-day-head {
  width: 100%;
  display: flex;
  justify-content: space-between;
  background: transparent;
  text-align: left;
  padding: 0 0 7px;
  color: var(--ink);
  text-transform: capitalize;
}
.week-day-head strong {
  font-size: 12px;
}
.week-day-head span {
  font-size: 9px;
  color: var(--muted);
}
.timetable-view {
  display: grid;
  gap: 15px;
}
.timetable-member-card {
  padding: 15px;
}
.timetable-member-head {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 11px;
}
.timetable-week {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 11px;
}
.timetable-day {
  border-top: 1px solid var(--line);
  padding-top: 9px;
  min-width: 0;
}
.timetable-day-head {
  font-size: 11px;
  font-weight: 600;
  color: var(--ink);
  text-transform: capitalize;
  margin-bottom: 7px;
}
.timetable-day-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 7px;
}
.timetable-view-head {
  display: flex;
  justify-content: flex-end;
}
.timetable-entry {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 6px;
  font-size: 11px;
}
.timetable-entry-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.timetable-entry b {
  font-size: 11px;
}
.timetable-entry span {
  font-size: 9px;
  color: var(--muted);
}
.timetable-day-empty {
  color: var(--muted);
  font-size: 10px;
}
.timetable-conflict-badge {
  display: inline-block;
  margin-top: 2px;
  color: #92400e;
  background: #fef3c7;
  font-size: 9px;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 6px;
  width: fit-content;
}
.timetable-conflict-warning {
  margin-top: 9px;
  padding: 7px 9px;
  border-radius: 8px;
  background: #fef3c7;
  color: #92400e;
  font-size: 10px;
  display: none;
}

/* Timetable Template — MiNapunk/Apple-szerű heti sablon-táblázat. Ezek a
   szabályok SZÁNDÉKOSAN `.tt-*`-scope-oltak (SOSEM sima `table`/`th`/`td`
   szelektor), hogy a Finance és más modulok táblázatai ÉRINTETLENEK
   maradjanak. A korábbi verzió Excel-szerű, sűrű rácsvonalas megjelenése
   (teljes `border-collapse` + minden cellán körben szegély) helyett ez a
   verzió a projekt többi kártyás felületével konzisztens, légies nyelvet
   használ: nincs függőleges rácsvonal, csak halvány, vízszintes
   sor-elválasztók, kerekített hover-kiemelés szerkeszthető cellákon,
   visszafogott fejléc. A `.timetable-*` osztályok fent a KORÁBBI
   kártya-alapú nézeté, nem használtak innentől, de szándékosan
   megmaradnak (nincs eltakarítás). */
.tt-table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.tt-table {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
  min-width: 560px;
  font-size: 12px;
}
.tt-table th,
.tt-table td {
  padding: 9px 12px;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid var(--line);
}
.tt-table tbody tr:last-child td {
  border-bottom: none;
}
.tt-table th {
  font-size: 10px;
  font-weight: 600;
  color: var(--muted);
  text-transform: capitalize;
  letter-spacing: .02em;
  background: #fafbfc;
  border-bottom: 1px solid var(--line);
}
.tt-corner {
  background: #fafbfc !important;
}
.tt-time-head {
  min-width: 62px;
}
.tt-lesson-num {
  font-weight: 700;
  font-size: 11px;
  color: var(--muted);
  width: 24px;
  text-align: center;
}
.tt-time-cell {
  white-space: nowrap;
  cursor: default;
  line-height: 1.35;
}
.tt-time-start,
.tt-time-end {
  display: block;
  font-size: 11px;
}
.tt-time-start {
  color: var(--ink);
  font-weight: 600;
}
.tt-time-end {
  color: var(--muted);
  margin-top: 1px;
  padding-top: 1px;
  border-top: 1px solid var(--line);
  width: fit-content;
}
.tt-time-unset {
  color: var(--muted);
}
.tt-cell {
  min-width: 104px;
  cursor: default;
  border-radius: 10px;
}
[data-tt-cell],
[data-tt-slot] {
  cursor: pointer;
  border-radius: 10px;
  transition: background-color .12s ease;
}
[data-tt-cell]:hover,
[data-tt-slot]:hover,
[data-tt-cell]:focus-visible,
[data-tt-slot]:focus-visible {
  background: var(--blue-soft);
  outline: none;
}
.tt-empty-cell {
  color: var(--muted);
}
.tt-subject {
  display: block;
  color: var(--ink);
}
.tt-split-badge {
  display: inline-block;
  margin-top: 3px;
  font-size: 9px;
  font-weight: 700;
  color: var(--blue);
  background: var(--blue-soft);
  padding: 1px 7px;
  border-radius: 999px;
  width: fit-content;
}
.tt-settings {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
  padding: 10px 14px;
  border-radius: 14px;
  background: #fafbfc;
  border: 1px solid var(--line);
  font-size: 11px;
  color: var(--muted);
}
.tt-week-override {
  display: flex;
  align-items: center;
  gap: 6px;
}
.tt-week-override select {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 4px 7px;
  font-size: 11px;
  color: var(--ink);
  background: #fff;
}
.tt-lesson-zero-toggle {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: var(--muted);
}
.tt-day-toggles {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.tt-day-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
}
.tt-cell-modal,
.tt-slot-modal {
  max-width: 360px;
}
/* HOTFIX — 5 perces lépésköz: natív óra/perc <select> pár, a meglévő
   .field/select nyelvet követve, nem egy idegen külső komponens. Kompakt,
   egysoros "ÓÓ : PP" elrendezés. */
.tt-time-select-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.tt-time-select-row select {
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 13px;
  color: var(--ink);
  background: #fff;
}
.tt-time-colon {
  color: var(--muted);
  font-weight: 700;
}
.tt-autocomplete-field {
  position: relative;
}
.tt-autocomplete-list {
  position: absolute;
  z-index: 20;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 4px;
  max-height: 160px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 6px;
}
.tt-autocomplete-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 8px 10px;
  font-size: 12px;
  color: var(--ink);
  background: none;
  border: none;
  border-radius: 9px;
  cursor: pointer;
}
.tt-autocomplete-item:hover,
.tt-autocomplete-item:focus-visible {
  background: var(--blue-soft);
  outline: none;
}
.tt-split-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  margin: 8px 0;
  color: var(--ink);
}

/* Tagonkénti bekapcsolás-panel (owner/admin) — kompakt, kártya-szerű
   lista soft kapcsolókkal, nem külön beállítás-oldal. */
.tt-enablement-panel {
  padding: 14px 16px;
  margin-bottom: 16px;
}
.tt-enablement-panel h3 {
  margin: 0 0 10px;
  font-size: 13px;
  color: var(--ink);
}
.tt-enable-list {
  display: grid;
  gap: 2px;
}
.tt-enable-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 4px;
  cursor: pointer;
  border-bottom: 1px solid var(--line);
}
.tt-enable-row:last-child {
  border-bottom: none;
}
.tt-enable-name {
  font-size: 12px;
  color: var(--ink);
  font-weight: 600;
}
/* Kompakt, MiNapunk-kék kapcsoló — natív checkbox elrejtve, a track/thumb
   CSS-sel rajzolva, hogy vizuálisan illeszkedjen a kártyás nyelvhez
   (nincs harmadik féltől származó komponens-könyvtár). */
.tt-switch {
  position: relative;
  display: inline-block;
  width: 34px;
  height: 20px;
  flex-shrink: 0;
}
.tt-switch input {
  position: absolute;
  inset: 0;
  opacity: 0;
  margin: 0;
  cursor: pointer;
  z-index: 1;
}
.tt-switch-track {
  position: absolute;
  inset: 0;
  background: #dfe3e9;
  border-radius: 999px;
  transition: background-color .15s ease;
}
.tt-switch-track::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
  transition: transform .15s ease;
}
.tt-switch input:checked + .tt-switch-track {
  background: var(--blue);
}
.tt-switch input:checked + .tt-switch-track::before {
  transform: translateX(14px);
}
.tt-switch input:focus-visible + .tt-switch-track {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

@media (max-width: 640px) {
  .tt-table { min-width: 560px; }
}
.month-layout {
  display: grid;
  gap: 15px;
}
.month-calendar-card,.month-selected-day {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 17px;
  padding: 15px;
  box-shadow: 0 8px 24px rgba(37,45,63,.04);
}
.month-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 13px;
}
.month-toolbar strong {
  text-transform: capitalize;
  font-size: 14px;
}
.month-nav {
  width: 29px;
  height: 29px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8f9fb;
  color: #68707b;
  font-size: 19px;
}
.month-grid {
  display: grid;
  grid-template-columns: repeat(7,minmax(0,1fr));
  gap: 6px;
}
.month-weekday {
  text-align: center;
  color: var(--muted);
  font-size: 8px;
  font-weight: 700;
  padding: 4px 0;
  text-transform: uppercase;
}
.month-day {
  min-height: 55px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fcfdff;
  padding: 8px;
  text-align: left;
  color: var(--ink);
  position: relative;
  font-size: 10px;
}
.month-day:hover {
  border-color: #a8d1ff;
  background: var(--blue-soft);
}
.month-day.is-selected {
  border: 2px solid var(--blue);
  background: var(--blue-soft);
  color: #075ab3;
  font-weight: 700;
  padding: 7px;
}
.month-day.is-empty {
  border-color: transparent;
  background: transparent;
  pointer-events: none;
}
.month-day i {
  position: absolute;
  left: 9px;
  bottom: 7px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
}
.selected-day-head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 13px;
}
.selected-day-head h2 {
  margin: 0;
  font-size: 14px;
  text-transform: capitalize;
}
.selected-day-head p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 9px;
}
.quick,.pending {
  padding: 16px;
}
.quick h3,.pending h3 {
  margin: 0 0 11px;
  font-size: 12px;
}
.status-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: 9px;
}
.status-row:last-child {
  border: 0;
}
.status-row span {
  color: var(--muted);
}
.pending-item {
  width: 100%;
  padding: 9px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 8px;
  align-items: flex-start;
  background: transparent;
  text-align: left;
}
.pending-item:last-child {
  border-bottom: 0;
}
.pending-item>span:nth-child(2) {
  flex: 1;
}
.pending-item strong {
  display: block;
  font-size: 10px;
}
.pending-item small {
  color: var(--muted);
  font-size: 9px;
}
.view-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 13px;
  flex-wrap: wrap;
}
.view-head .segmented {
  max-width: 100%;
}

/* TIMELINE */
.timeline {
  position: relative;
  max-width: 990px;
}
.event-row {
  display: grid;
  grid-template-columns: 65px 39px minmax(0,1fr);
  gap: 0;
  min-height: 72px;
}
.time {
  padding-top: 13px;
  text-align: left;
  color: var(--muted);
  font-size: 10px;
}
.timeline-node {
  display: flex;
  justify-content: center;
  position: relative;
}
.timeline-node:before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: #e2e6eb;
}
.timeline-node span {
  position: relative;
  margin-top: 7px;
  width: 31px;
  height: 31px;
  border: 2px solid #8db1ee;
  border-radius: 9px;
  background: #fff;
  display: grid;
  place-items: center;
  font-size: 14px;
}
.event-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.event-top>div {
  min-width: 0;
}
.event strong {
  font-size: 12px;
}
.event small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.owner {
  margin-top: 5px;
  color: #697484;
  font-size: 9px;
}
.tag {
  display: inline-flex;
  margin-top: 6px;
  padding: 3px 6px;
  background: #f3f5f8;
  border-radius: 999px;
  color: #68727f;
  font-size: 8px;
}
.edit-pencil {
  width: 26px;
  height: 26px;
  flex: none;
  border-radius: 8px;
  background: #f2f5f9;
  color: #55708f;
  display: inline-grid;
  place-items: center;
}
.edit-pencil:hover {
  background: var(--blue-soft);
  color: var(--blue);
}
.person-card li .edit-pencil {
  width: 23px;
  height: 23px;
}
.pending-item .edit-pencil {
  margin-left: auto;
}
main,.layout,.view-card,#mainView,.timeline,.week-view,.cards-view,.month-layout,.event-row,.event,.person-card {
  min-width: 0;
  max-width: 100%;
}
.event {
  margin: 4px 0;
  border: 1px solid var(--line);
  border-left: 4px solid var(--blue);
  border-radius: 12px;
  padding: 9px 12px;
  background: #fff;
  cursor: pointer;
  overflow: hidden;
}
.event-top,.event-top>div {
  min-width: 0;
}
.event strong,.event small,.owner {
  overflow-wrap: anywhere;
}
.event.conflict {
  border-left-color: var(--red);
  background: #fffafa;
}
.conflict-note {
  margin-top: 6px;
  color: #c53030;
  font-size: 9px;
  font-weight: 650;
}

/* CARDS */
.cards-view {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 14px;
  max-width: 990px;
}
.pc-head {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 11px;
}
.pc-head strong {
  font-size: 12px;
}
.pc-head small {
  display: block;
  color: var(--muted);
  font-size: 9px;
  margin-top: 2px;
}
.person-card ul {
  padding: 0;
  margin: 0;
  list-style: none;
  display: grid;
  gap: 7px;
}
.person-card li {
  display: flex;
  align-items: center;
  gap: 8px;
  border-top: 1px solid #f0f2f5;
  padding-top: 8px;
  font-size: 10px;
  cursor: pointer;
}
.person-card li span {
  color: var(--muted);
}
.person-card li b {
  font-weight: 650;
  margin-left: auto;
}
.person-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 15px;
  background: #fff;
  overflow: hidden;
}

/* MODALS */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(20,24,33,.4);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  z-index: 20;
}
.modal-backdrop.open {
  display: flex;
}
.modal {
  width: min(590px,100%);
  max-height: 92vh;
  overflow: auto;
  background: #fff;
  border-radius: 23px;
  padding: 21px;
  box-shadow: 0 24px 80px rgba(0,0,0,.22);
}
.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}
.modal h2 {
  margin: 0;
  font-size: 19px;
}
.close {
  width: 31px;
  height: 31px;
  border-radius: 50%;
  background: #f0f2f5;
  color: #555;
  font-size: 18px;
}
.type-row {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 7px;
}
.type-btn {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
  text-align: left;
  font-size: 11px;
}
.type-btn.active {
  border-color: #9dceff;
  background: var(--blue-soft);
  color: #075ab3;
}
.field {
  margin: 11px 0;
}
.field label {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 10px;
}
.field input,.field select,.field textarea {
  width: 100%;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fbfcfd;
  outline: none;
}
.field input:focus,.field select:focus,.field textarea:focus {
  border-color: #8fc5fa;
  box-shadow: 0 0 0 3px #e9f4ff;
}
.assignee-checks {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 6px;
}
.assignee-chip {
  display: flex!important;
  align-items: center;
  gap: 7px;
  margin: 0!important;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fbfcfd;
  color: var(--ink)!important;
}
.assignee-chip:has(input:checked) {
  border-color: #a9cdf7;
  background: var(--blue-soft);
}
.assignee-chip input {
  width: 14px!important;
  height: 14px;
  accent-color: var(--blue);
  flex: none;
}
.assignee-chip .avatar {
  width: 26px;
  height: 26px;
  font-size: 14px;
}
.assignee-chip b {
  font-size: 10px;
}
.assignee-chip small {
  display: block;
  color: var(--muted);
  font-size: 8px;
}
.details-toggle {
  width: 100%;
  padding: 10px;
  border-radius: 10px;
  background: #f5f6f8;
  text-align: left;
  color: #555;
  font-size: 10px;
}
.details {
  display: none;
}
.details.open {
  display: block;
}
.form-note {
  color: var(--muted);
  font-size: 9px;
}
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 7px;
  margin-top: 16px;
}
.secondary,.danger-button {
  padding: 10px 13px;
  border-radius: 10px;
}
.secondary {
  background: #f0f2f5;
  color: #555;
}
.danger-button {
  margin-right: auto;
  background: #fff0f0;
  color: #c13939;
}
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(20px);
  background: #1d1d1f;
  color: #fff;
  padding: 10px 14px;
  border-radius: 999px;
  opacity: 0;
  transition: .2s;
  z-index: 30;
  font-size: 11px;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* SHOPPING MODULE */
.shopping-view {
  max-width: 720px;
}
.shopping-add {
  padding: 14px;
  margin-bottom: 16px;
}
.shopping-add-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.shopping-add-row input {
  flex: 1 1 180px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 0 12px;
  outline: none;
  background: #fff;
}
.shopping-add-row select {
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 0 10px;
  background: #fff;
  min-width: 130px;
}
.shopping-add-row .primary {
  height: 42px;
  white-space: nowrap;
  padding: 0 16px;
}
.shopping-cat {
  margin-bottom: 18px;
}
.shopping-cat-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  padding: 0 2px;
}
.shopping-cat-head strong {
  font-size: 12px;
}
.shopping-cat-head small {
  font-size: 10px;
  color: var(--muted);
  background: #f3f5f8;
  padding: 2px 7px;
  border-radius: 999px;
}
.shopping-cat-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
  display: inline-block;
}
.shopping-cat-dot[data-cat="Élelmiszer"] {
  background: #51b992;
}
.shopping-cat-dot[data-cat="Háztartás"] {
  background: #2d6cdf;
}
.shopping-cat-dot[data-cat="Gyerekek"] {
  background: #f5a623;
}
.shopping-cat-dot[data-cat="Egyéb"] {
  background: #9aa2ad;
}
.shopping-items {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 7px;
}
.shopping-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  transition: .15s;
}
.shopping-item.done {
  opacity: .58;
  background: #f9fafb;
}
.shopping-item.done .shopping-name {
  text-decoration: line-through;
}
.shopping-check {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #f3f5f8;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  font-size: 15px;
  flex: none;
  cursor: pointer;
}
.shopping-check:hover {
  background: #eef4ff;
}
.shopping-name {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  font-weight: 500;
  overflow-wrap: anywhere;
}
.shopping-badge {
  font-size: 9px;
  background: #f3f5f8;
  color: #68727f;
  padding: 3px 8px;
  border-radius: 999px;
  white-space: nowrap;
}
.shopping-del {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  flex: none;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.shopping-del:hover {
  background: #ffe9e9;
  color: var(--red);
}
.shopping-done-sep {
  margin: 22px 0 12px;
  border-top: 1px dashed var(--line);
  position: relative;
  height: 1px;
}
.shopping-done-sep span {
  position: absolute;
  top: -9px;
  left: 12px;
  background: #fff;
  padding: 0 8px;
  font-size: 10px;
  color: var(--muted);
}
.shopping-info {
  display: block;
  margin-top: 3px;
  font-size: 9px;
  color: var(--muted);
}
.shopping-info small {
  display: block;
}

/* TASK MODULE */
.task-add {
  padding: 14px;
  margin-bottom: 18px;
}
.task-add-row {
  display: flex;
  gap: 8px;
}
.task-add-row input {
  flex: 1;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 0 12px;
}
.task-list {
  display: grid;
  gap: 7px;
}
.task-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.task-card.done .task-name > *:first-child {
  text-decoration: line-through;
}
.task-check {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #f3f5f8;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  font-size: 15px;
  flex: none;
}
.task-name {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  font-weight: 500;
}
.task-info {
  display: block;
  margin-top: 3px;
}
.task-add-row select {
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 0 10px;
  background: #fff;
  min-width: 130px;
}
.task-name strong {
  display: block;
  font-size: 13px;
  font-weight: 650;
}
.task-info small {
  display: block;
  font-size: 9px;
  color: var(--muted);
  margin-top: 3px;
}
.task-card.done {
  opacity: .75;
  background: #f9fafb;
}
.task-card.done .task-name strong {
  text-decoration: line-through;
}
.task-actions {
  margin-left: auto;
  display: flex;
  gap: 4px;
}
.task-actions button {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: #f3f5f8;
  color: var(--muted);
}
.task-actions button:hover {
  background: var(--blue-soft);
  color: var(--blue);
}

/* MEMBER MODULE */
.mobile-family {
  display: none;
}
.person-main {
  display: flex;
  align-items: center;
  flex: none;
  min-width: 0;
  text-align: left;
  color: var(--ink);
}
.person-main>span {
  font-size: 12px;
  font-weight: 650;
  min-width: 0;
}
.person-main small {
  display: block;
  color: var(--muted);
  font-size: 9px;
  font-weight: 400;
  margin-top: 2px;
}
.person-focus {
  width: 20px;
  height: 20px;
  margin-left: auto;
  border-radius: 7px;
  background: transparent;
  color: #a8b2bf;
  font-size: 14px;
  line-height: 1;
  opacity: .45;
}
.person-focus:hover,.person:focus-visible .person-focus {
  background: var(--blue-soft);
  color: var(--blue);
  opacity: 1;
}
.avatar img,.member-avatar-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}
.person-actions {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}
.person-actions+.dot {
  margin-left: 3px;
}
.person-actions .person-focus {
  margin-left: 0;
}
.person-edit {
  width: 20px;
  height: 20px;
  border-radius: 7px;
  background: transparent;
  color: #a8b2bf;
  font-size: 12px;
  line-height: 1;
  opacity: .45;
}
.person-edit:hover,.person:focus-visible .person-edit {
  background: var(--blue-soft);
  color: var(--blue);
  opacity: 1;
}
.member-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(20,24,33,.4);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  z-index: 25;
}
.member-modal-backdrop.open {
  display: flex;
}
.member-modal {
  width: min(430px,100%);
  background: #fff;
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 24px 80px rgba(0,0,0,.22);
}
.member-modal-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.member-kicker {
  display: block;
  color: var(--blue);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .08em;
}
.member-modal h2 {
  margin: 7px 0 0;
  font-size: 22px;
}
.member-intro {
  margin: 7px 0 17px;
  color: var(--muted);
  font-size: 10px;
}
.member-avatar-line {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-bottom: 13px;
}
.member-avatar-preview {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: #edf4ff;
  display: grid;
  place-items: center;
  font-size: 34px;
  overflow: hidden;
}
.member-photo-button {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 9px 11px;
  color: #596675;
  font-size: 10px;
  cursor: pointer;
}
.member-photo-button input {
  display: none;
}
.avatar-palette {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin: 0 0 17px;
}
.avatar-choice {
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fbfcfd;
  font-size: 20px;
}
.avatar-choice.active {
  border: 2px solid var(--blue);
  background: var(--blue-soft);
}
.member-field {
  margin: 11px 0;
}
.member-field label {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-bottom: 5px;
}
.member-field input,.member-field select {
  width: 100%;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fbfcfd;
  outline: none;
}
.member-actions {
  display: flex;
  gap: 7px;
  align-items: center;
  margin-top: 18px;
}
.member-actions .primary {
  margin-left: auto;
}
.member-color-label {
  color: var(--muted);
  font-size: 10px;
  text-align: center;
  margin: 0 0 7px;
}
.color-palette {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 0 0 15px;
}
.color-choice {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px var(--line);
  padding: 0;
}
.color-choice.active {
  box-shadow: 0 0 0 2px #fff,0 0 0 4px var(--blue);
}

/* MOBILE */
@media(max-width:1000px) {
  .layout {
    grid-template-columns: 1fr;
  }
  .side-stack {
    grid-template-columns: 1fr 1fr;
  }
}
@media(max-width:800px) {
  .app {
    width: 100%;
    min-height: 100vh;
    margin: 0;
    border: 0;
    border-radius: 0;
    grid-template-columns: 1fr;
  }
  .app>aside {
    display: none;
  }
  main {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
  }
  .topbar {
    height: auto;
    min-height: 67px;
    padding: 13px 17px;
  }
  .bottom-nav b {
    font-size: 15px;
  }
  .bottom-nav .active {
    color: var(--blue);
  }
  .app .mobile-family {
    display: block;
    margin: 16px 16px 0;
    padding: 13px;
    border-radius: 16px;
    box-shadow: 0 7px 20px rgba(37,45,63,.05);
  }
  .mobile-family-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 11px;
  }
  .mobile-family-head strong,.mobile-family-head small {
    display: block;
  }
  .mobile-family-head strong {
    font-size: 12px;
  }
  .mobile-family-head small {
    margin-top: 3px;
    color: var(--muted);
    font-size: 9px;
  }
  .mobile-family-all {
    padding: 7px 9px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: #fff;
    color: var(--muted);
    font-size: 10px;
    white-space: nowrap;
  }
  .mobile-family-all.active {
    border-color: #a8cdf7;
    background: var(--blue-soft);
    color: var(--blue);
    font-weight: 700;
  }
  .mobile-people-grid {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 7px;
  }
  .mobile-person {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: #fff;
    text-align: left;
    color: var(--ink);
  }
  .mobile-person.active {
    border-color: #a8cdf7;
    background: var(--blue-soft);
  }
  .mobile-person .side-check {
    width: 14px;
    height: 14px;
  }
  .mobile-person .avatar {
    width: 28px;
    height: 28px;
    font-size: 15px;
  }
  .mobile-person-name {
    min-width: 0;
    overflow: hidden;
  }
  .mobile-person-name b,.mobile-person-name small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .mobile-person-name b {
    font-size: 10px;
  }
  .mobile-person-name small {
    margin-top: 2px;
    color: var(--muted);
    font-size: 8px;
  }
  .view-card {
    overflow: hidden;
  }
  .period-nav {
    max-width: 100%;
    overflow: hidden;
  }
  .day-strip {
    max-width: 100%;
  }
  .cards-view {
    gap: 10px;
  }
  .timetable-week {
    grid-template-columns: repeat(5, 148px);
    overflow-x: auto;
    padding-bottom: 5px;
  }
  .week-view {
    gap: 13px;
  }
  .event-row {
    grid-template-columns: 43px 30px minmax(0,1fr);
  }
  .event {
    padding: 8px 9px;
  }
  .event-top {
    gap: 6px;
  }
  .event strong {
    font-size: 11px;
  }
  .event small {
    font-size: 8px;
  }
  .owner {
    font-size: 8px;
  }
  .month-calendar-card,.month-selected-day {
    padding: 11px;
  }
  .bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: space-around;
    background: #fff;
    border-top: 1px solid var(--line);
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom,0px));
    z-index: 10;
    align-items: flex-start;
    gap: 2px;
  }
  .bottom-nav button {
    display: grid;
    justify-items: center;
    gap: 3px;
    background: transparent;
    color: var(--muted);
    font-size: 9px;
    flex: 1;
    min-width: 0;
    padding: 4px 2px;
    white-space: nowrap;
  }
  .bottom-nav button b {
    font-size: 16px;
  }
  .layout {
    margin: 23px 16px 90px;
    margin-top: 16px;
    margin-bottom: 110px;
  }
}
.finance-import-history-list{display:grid;gap:10px}.finance-import-history-item{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:14px;align-items:center;padding:14px;border:1px solid var(--line);border-radius:15px;background:#fff}.finance-import-history-item>div{display:grid;gap:4px}.finance-import-history-item small{color:var(--muted)}.finance-import-history-meta{justify-items:start;font-size:13px}.finance-import-status{display:inline-flex;width:max-content;padding:3px 8px;border-radius:999px;font-size:11px;font-weight:700;background:#e9f8ee;color:#18794e}.finance-import-status.undone{background:#f1f2f4;color:#6c727f}.finance-import-history-item.is-undone{opacity:.7}.finance-import-undo-modal,.finance-test-reset-modal{max-width:460px}.finance-history-actions{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end}.finance-test-reset-warning{margin:14px 0;padding:12px;border:1px solid #f1c6c6;border-radius:12px;background:#fff7f7;color:#922b2b}
@media(max-width:560px) {
  .layout,.side-stack {
    grid-template-columns: 1fr;
  }
  .topbar .title {
    font-size: 19px;
  }
  .primary {
    padding: 9px 11px;
  }
  .view-head {
    align-items: flex-start;
  }
  .event-row {
    grid-template-columns: 46px 34px minmax(0,1fr);
  }
  .cards-view {
    grid-template-columns: 1fr;
  }
  .month-day {
    min-height: 43px;
    padding: 6px;
  }
  .month-day.is-selected {
    padding: 5px;
  }
  .assignee-checks,.type-row {
    grid-template-columns: 1fr;
  }
  .modal-backdrop {
    padding: 0;
    align-items: flex-end;
  }
  .modal {
    border-radius: 23px 23px 0 0;
  }
  .shopping-add .shopping-add-row input {
    flex: 1 1 100%;
  }
  .shopping-add-row select {
    flex: 1;
  }
  .shopping-add-row .primary {
    flex: 1 1 100%;
  }
  .task-add-row {
    flex-direction: column;
  }
  .task-add-row select {
    width: 100%;
  }
  .member-modal-backdrop {
    align-items: flex-end;
    padding: 0;
  }
  .member-modal {
    border-radius: 24px 24px 0 0;
  }
  .avatar-palette {
    flex-wrap: wrap;
  }
  .finance-import-history-item{grid-template-columns:1fr;gap:9px}.finance-import-history-item .danger-button{justify-self:start}.finance-history-actions{width:100%;justify-content:flex-start}
}
