/*
 * Stavebnica rozhrania Gram CRM: okno aplikácie, menu, hlavičky, polia, lišta stavov.
 * Používa ju príbeh na úvodnej stránke (story.css) aj ukážky na podstránkach (solutions.css).
 * Rozmery vo vnútri .stage sú v návrhových pixeloch ako v aplikácii.
 */

.fit {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 0;
}

.stage {
  position: absolute;
  left: 0;
  top: 0;
  transform-origin: 0 0;
  font-family: var(--font);
  font-size: 13px;
  line-height: 1.35;
  color: var(--ink);
  letter-spacing: normal;
}

.stage p {
  margin: 0;
}

.stage .i {
  width: 14px;
  height: 14px;
}

/* ===== Stavebnica rozhrania Gram CRM ===== */

/* Vzhľad podľa aplikácie: sivé pozadie, menu a horná lišta na ňom, biely hlavný panel. */

.gw {
  --app: #f3f3f4;
  --panel: #ffffff;
  --appLine: #e6e6e9;
  --appText: #18181b;
  --appMuted: #71717a;
  --lnk: #2563eb;
  position: absolute;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 16px;
  background: var(--app);
  color: var(--appText);
  box-shadow: 0 2px 4px rgba(20, 20, 30, 0.04), 0 30px 70px -24px rgba(20, 20, 30, 0.35), 0 0 0 1px rgba(20, 20, 30, 0.08);
}

.gwChrome {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 30px;
  flex: none;
  padding: 0 14px;
  background: #e9e9ec;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.gwChrome > i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #d4d4d8;
}

.gwUrl {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 20px;
  margin: 0 auto;
  padding: 0 14px;
  border-radius: 7px;
  background: #fff;
  color: var(--muted);
  font-size: 11px;
}

.gwUrl .i {
  width: 10px;
  height: 10px;
}

.gwBody {
  display: flex;
  flex: 1;
  min-height: 0;
}

.gwSide {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 188px;
  flex: none;
  padding: 10px 10px 12px;
}

.gwUser {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 4px;
  margin-bottom: 6px;
}

.gwUser img {
  width: 26px;
  height: 26px;
}

.gwUser b {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.2;
}

.gwUser small {
  display: block;
  color: var(--appText);
  font-size: 11px;
  line-height: 1.2;
}

.gwCaret {
  width: 0;
  height: 0;
  margin-left: 4px;
  border: 4px solid transparent;
  border-top: 5px solid currentColor;
  border-bottom: 0;
}

.gwNav {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.gwNavTitle {
  margin: 10px 8px 3px !important;
  color: var(--appMuted);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.gwNavItem {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 27px;
  padding: 0 8px;
  border-radius: 8px;
  color: var(--appText);
  font-size: 12.5px;
  white-space: nowrap;
  transition: opacity 0.4s, background-color 0.3s;
}

.gwNavItem.isActive {
  background: #e4e4e7;
  font-weight: 500;
}

.gwNavIco {
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  flex: none;
  color: #3f3f46;
}

.gwNavIco .i {
  width: 15px;
  height: 15px;
  stroke-width: 1.7;
}

/* počet vpravo v položke menu (Inbox) */
.gwNavCount {
  margin-left: auto;
  color: var(--appMuted);
  font-size: 11px;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
}

.gwMain {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  padding: 0 10px 10px 0;
}

.gwTop {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  flex: none;
}

.gwSearch {
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(52%, 360px);
  height: 30px;
  padding: 0 12px;
  border: 1px solid var(--appLine);
  border-radius: 999px;
  background: #fff;
  color: #9a9aa3;
  font-size: 11.5px;
}

.gwSearch kbd {
  display: none;
}

.gwTopIcons {
  position: absolute;
  right: 4px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #3f3f46;
}

.gwTopIcons .i {
  width: 15px;
  height: 15px;
}

.gwBell {
  position: relative;
  display: flex;
  color: var(--lnk);
}

.gwBell i {
  position: absolute;
  top: -6px;
  right: -6px;
  display: grid;
  place-items: center;
  min-width: 13px;
  height: 13px;
  border-radius: 999px;
  background: #18181b;
  color: #fff;
  font-size: 8.5px;
  font-style: normal;
  font-weight: 700;
}

.gwAiBtn {
  display: flex;
  align-items: center;
  gap: 5px;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: #e9e9ec;
  font-size: 11.5px;
  font-weight: 500;
}

/* biely hlavný panel s obsahom */
.gwPanel {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  padding: 16px 18px;
  border: 1px solid var(--appLine);
  border-radius: 14px;
  background: var(--panel);
}

/* hlavička zoznamu: dlaždica, názov pohľadu, tlačidlo */
.pageHead2 {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 12px;
  font-size: 15px;
}

.pageHead2 b {
  font-weight: 600;
}

.btnNew {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  margin-left: auto;
  padding: 0 10px;
  border: 1px solid var(--appLine);
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 500;
}

.btnNew i {
  width: 1px;
  height: 16px;
  background: var(--appLine);
}

.btnNew .i {
  width: 12px;
  height: 12px;
}

.tile {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  flex: none;
  border-radius: 7px;
  background: var(--c);
  color: #fff;
}

.tile .i {
  width: 14px;
  height: 14px;
}

.tileSm {
  width: 20px;
  height: 20px;
  border-radius: 6px;
}

.tileSm .i {
  width: 12px;
  height: 12px;
}

/* detail záznamu */
.recHead {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
}

.recHead .tile {
  width: 26px;
  height: 26px;
  margin-top: 1px;
}

.recName {
  display: grid;
  min-width: 0;
}

.recName b {
  overflow: hidden;
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.recName small {
  color: var(--appMuted);
  font-size: 10.5px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.recTools {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  color: var(--appText);
  font-size: 11.5px;
}

.recTools em {
  margin-right: 2px;
  font-style: normal;
}

.rBtn,
.rPill {
  display: grid;
  place-items: center;
  height: 28px;
  min-width: 28px;
  border: 1px solid var(--appLine);
  border-radius: 999px;
}

.rPill {
  display: flex;
  gap: 5px;
  padding: 0 10px;
}

.rBtn .i,
.rPill .i {
  width: 12px;
  height: 12px;
}

.sumBar {
  display: flex;
  align-items: stretch;
  gap: 0;
  padding: 9px 12px;
  border-radius: 12px;
  background: #f4f4f5;
}

.sumBar p {
  display: grid;
  gap: 3px;
  padding: 0 18px 0 12px;
  border-left: 1px solid #e4e4e7;
}

.sumBar p:first-child {
  padding-left: 0;
  border-left: 0;
}

.sumBar small {
  color: var(--appMuted);
  font-size: 9.5px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.sumBar b {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
}

.tabs2 {
  display: flex;
  gap: 16px;
  margin: 14px 0 10px;
  border-bottom: 1px solid #efeff1;
  font-size: 12px;
}

.tabs2 span {
  padding: 0 0 8px;
  color: #52525b;
  white-space: nowrap;
}

.tabs2 .isOn {
  box-shadow: inset 0 -2px 0 var(--lnk);
  color: var(--appText);
  font-weight: 600;
}

.relHead {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 10px;
  border-radius: 10px;
  background: #f4f4f5;
  font-size: 12px;
}

.relHead b {
  font-weight: 500;
}

.relTools {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-left: auto;
  color: #3f3f46;
}

.relTools .i {
  width: 12px;
  height: 12px;
}

.addBtn {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 22px;
  padding: 0 8px;
  border: 1px solid var(--appLine);
  border-radius: 999px;
  background: #fff;
  font-size: 10.5px;
}

.addBtn i {
  width: 1px;
  height: 12px;
  background: var(--appLine);
}

.fld {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.fld small {
  color: var(--appMuted);
  font-size: 9.5px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.fld b {
  overflow: hidden;
  padding: 6px 9px;
  border-radius: 7px;
  background: #f4f4f5;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.lnk {
  color: var(--lnk, #2563eb);
}

.owner {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

/* fáza v zozname: názov a pásik prejdených fáz */
.stBadge {
  display: inline-grid;
  gap: 3px;
  justify-items: start;
}

.stBadge b {
  font-size: 9.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: #3f3f46;
  white-space: nowrap;
}

.stBadge > span {
  display: flex;
  gap: 2px;
}

.stBadge i {
  width: 11px;
  height: 3px;
  border-radius: 1px;
  background: #e4e4e7;
}

.stBadge i.f {
  background: var(--c);
}

/* plánovaná aktivita: ikona a zelený čip */
.actChip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.actChip .i {
  width: 12px;
  height: 12px;
}

.actChip em {
  padding: 2px 7px;
  border: 1px solid #d4e9da;
  border-radius: 999px;
  background: #ebf6ee;
  color: #3d6b4d;
  font-size: 10px;
  font-style: normal;
  font-weight: 600;
}

.viewSwitch {
  display: flex;
  gap: 2px;
  padding: 3px;
  border-radius: 9px;
  background: #ececef;
  font-size: 11px;
}

.viewSwitch > span {
  display: flex;
  align-items: center;
  gap: 5px;
  height: 22px;
  padding: 0 9px;
  border-radius: 7px;
  color: var(--muted);
  white-space: nowrap;
  transition: background-color 0.3s, color 0.3s, box-shadow 0.3s;
}

.viewSwitch .i {
  width: 12px;
  height: 12px;
}

.viewSwitch > .isOn {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

/* staré názvy, ktoré ešte používajú niektoré scény */
.gwHead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 2px 0 12px;
}

.gwTitle {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
}

.gwTitle > .i {
  color: var(--faint);
}

.gwTitleIco {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  flex: none;
  border-radius: 7px;
  background: color-mix(in srgb, var(--c) 14%, #fff);
  color: var(--c);
}

.gwTitleIco .i {
  width: 14px;
  height: 14px;
}

.card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 0 0 1px #e6e6e9, 0 1px 2px rgba(52, 55, 66, 0.05);
}

.av {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  flex: none;
  border-radius: 50%;
  background: var(--c);
  color: #fff;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.avSm {
  width: 18px;
  height: 18px;
  font-size: 7.5px;
}

.avLg {
  width: 36px;
  height: 36px;
  font-size: 13px;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 20px;
  padding: 0 8px;
  border-radius: 999px;
  background: #f0f0f2;
  color: var(--ink-2);
  font-size: 10.5px;
  font-weight: 600;
  white-space: nowrap;
}

.tag .i {
  width: 11px;
  height: 11px;
}

.tagBlue {
  background: var(--blue-soft);
  color: var(--blue);
}

.tagGreen {
  background: #e3f4e8;
  color: #2f7a4a;
}

.tagAmber {
  background: var(--amber-soft);
  color: #8a6400;
}

.tagRed {
  background: var(--red-soft);
  color: #c0343a;
}

.tagViolet {
  background: var(--violet-soft);
  color: #5b3fd1;
}

.num {
  font-variant-numeric: tabular-nums;
}

.muted {
  color: var(--muted);
}

/* lišta stavov na detaile: zaoblená, prejdené fázy zelené s fajkou, aktuálna modrá */
.stageBar {
  display: flex;
}

.stageSeg {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1 1 0;
  min-width: 0;
  gap: 6px;
  transition: flex-grow 0.6s, margin 0.6s, opacity 0.45s;
}

/* fáza začína pod hrotom predchádzajúcej (hĺbka 10 px), medzi nimi ostanú 2 px ako v aplikácii */
.stageSeg + .stageSeg {
  margin-left: -8px;
}

.stageSeg b {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 100%;
  height: 28px;
  padding: 0 10px 0 16px;
  overflow: hidden;
  background: #e7e7ea;
  color: #71717a;
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
  text-overflow: ellipsis;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 50%, calc(100% - 10px) 100%, 0 100%, 10px 50%);
  transition: background-color 0.45s, color 0.45s;
}

.stageSeg b .i {
  width: 12px;
  height: 12px;
  flex: none;
  stroke-width: 2.4;
}

/* dlhý názov fázy sa skráti trojbodkou na konci ako v aplikácii */
.stageSeg b span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stageSeg:first-child b {
  padding-left: 10px;
  border-radius: 999px 0 0 999px;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 50%, calc(100% - 10px) 100%, 0 100%);
}

.stageSeg:last-child b {
  border-radius: 0 999px 999px 0;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 10px 50%);
}

.stageSeg small {
  color: #a1a1aa;
  font-size: 9.5px;
  white-space: nowrap;
}

.stageSeg.is-done b {
  background: #3fb46f;
  color: #fff;
}

.stageSeg.is-now b {
  background: #3b82f6;
  color: #fff;
}

.fileIco {
  flex: none;
  padding: 2px 4px;
  border-radius: 4px;
  background: var(--red);
  color: #fff;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: 50%;
  background: var(--c);
}

/* ===== Značka zákazníka (avatar s iniciálami) ===== */

.trackerAvatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

/* ===== Telefón ===== */
/* Mobilná aplikácia v ukážkach: príbeh na úvodnej stránke (story.css riadi, ktorá obrazovka .mbV je vidieť)
   aj stránky riešení (solutions.css). Obrazovka bez scény sa ukáže triedou .isShown. */

/* telefón: mobilná aplikácia Gram CRM (sivé pozadie, biele karty, plávajúca spodná lišta) */
.mbPhone {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #f2f2f6;
  color: #18181b;
  font-size: 10px;
}

.mbPhone::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 8px;
  z-index: 9;
  width: 74px;
  height: 20px;
  border-radius: 999px;
  background: #17181b;
  transform: translateX(-50%);
}

.mbStatus {
  position: absolute;
  inset: 0 0 auto;
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 34px;
  padding: 0 22px 0 26px;
  font-size: 10.5px;
}

.mbStatus b {
  font-weight: 650;
}

.mbStatus > span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.mbSig {
  display: flex;
  align-items: flex-end;
  gap: 1.5px;
  height: 8px;
}

.mbSig i {
  width: 2.5px;
  border-radius: 1px;
  background: #18181b;
}

.mbSig i:nth-child(1) {
  height: 3px;
}

.mbSig i:nth-child(2) {
  height: 4.5px;
}

.mbSig i:nth-child(3) {
  height: 6px;
}

.mbSig i:nth-child(4) {
  height: 8px;
}

.mbBat {
  width: 18px;
  height: 9px;
  border-radius: 3px;
  background: linear-gradient(90deg, #18181b 60%, transparent 60%);
  box-shadow: inset 0 0 0 1px #18181b;
}

.mbV {
  position: absolute;
  inset: 34px 0 0;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateX(40%);
  transition: opacity 0.45s, transform 0.55s cubic-bezier(0.3, 0.7, 0.2, 1);
}

.mbTopBar {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 34px;
  flex: none;
  padding: 0 14px;
}

.mbTopBar b {
  flex: 1;
  font-size: 12.5px;
  font-weight: 400;
}

.mbTopBar .i {
  width: 15px;
  height: 15px;
}

.mbDots {
  display: grid;
  gap: 2px;
}

.mbDots i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #18181b;
}

.mbPhone .tileSm {
  width: 20px;
  height: 20px;
  border-radius: 6px;
}

.mbListHead {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px 4px;
}

.mbListHead b {
  font-size: 13.5px;
  font-weight: 600;
}

.mbPills {
  display: flex;
  justify-content: flex-end;
  gap: 4px;
  padding: 6px 10px 2px;
}

.mbPills span {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 20px;
  padding: 0 7px;
  border-radius: 999px;
  background: #e4e4e9;
  font-size: 9.5px;
}

.mbPills .i {
  width: 10px;
  height: 10px;
}

.mbGroup {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px 6px;
  font-size: 10.5px;
}

.mbGroup i {
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: inset 0 0 0 1px #e4e4e9;
  font-size: 9px;
  font-style: normal;
}

.mbCards {
  margin: 0 8px;
  overflow: hidden;
  border-radius: 12px;
  background: #fff;
}

.mbSwipe {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid #efeff2;
}

.mbSwAct {
  position: absolute;
  inset: 0 auto 0 0;
  display: flex;
}

.mbSwAct > span {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 3px;
  width: 50px;
  background: var(--c);
  color: #fff;
  font-size: 8.5px;
}

.mbSwAct .i {
  width: 13px;
  height: 13px;
}

.mbRow {
  position: relative;
  display: grid;
  gap: 4px;
  padding: 8px 10px;
  background: #fff;
  transition: transform 0.45s cubic-bezier(0.3, 0.7, 0.2, 1);
}

.mbRow.on {
  transform: translateX(100px);
}

.mbRowT {
  overflow: hidden;
  font-size: 10.5px;
  font-weight: 600;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.mbRowL {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  color: #71717a;
  font-size: 10px;
}

.mbRowL > span:last-child {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.mbPhone .owner {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #18181b;
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
}

.mbPhone .owner .av {
  width: 16px;
  height: 16px;
  font-size: 6.5px;
}

.mbPhone .actChip em {
  font-size: 9px;
}

.mbTap {
  position: absolute;
  inset: 0;
  background: #3b82f6;
  opacity: 0;
  pointer-events: none;
}

.mbTap.on {
  animation: mbTap 0.6s ease-out;
}

@keyframes mbTap {
  30% {
    opacity: 0.12;
  }
}

.mbFab {
  position: absolute;
  right: 12px;
  bottom: 64px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #1d6fd8;
  color: #fff;
  box-shadow: 0 6px 14px -4px rgba(29, 111, 216, 0.6);
}

.mbFab .i {
  width: 17px;
  height: 17px;
}

.mbFabAi {
  right: 56px;
  background: #fff;
  color: #7c3aed;
  box-shadow: 0 6px 14px -4px rgba(0, 0, 0, 0.25);
}

.mbFabAi .i {
  width: 15px;
  height: 15px;
}

.mbV2 .mbFab {
  bottom: 14px;
}

.mbFoot {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 12px;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  height: 42px;
  padding: 3px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1), 0 0 0 0.75px rgba(52, 55, 66, 0.08);
}

.mbFoot span {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 2px;
  min-width: 0;
  overflow: hidden;
  border-radius: 999px;
}

.mbFoot small {
  max-width: 100%;
  overflow: hidden;
  font-size: 7.5px;
  white-space: nowrap;
  text-overflow: clip;
}

.mbFoot .i {
  width: 13px;
  height: 13px;
}

.mbFoot .isOn {
  background: #ececf0;
  font-weight: 600;
}

/* detail obchodu */
.mbRec {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  padding: 4px 12px 8px;
}

.mbRec > span:last-child {
  display: grid;
  min-width: 0;
}

.mbRec b {
  overflow: hidden;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.25;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.mbRec small {
  color: #71717a;
  font-size: 9.5px;
}

.mbDet {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 10px;
  margin: 0 8px;
  padding: 10px 10px 8px;
  border-radius: 14px;
  background: #fff;
}

.mbKv {
  display: grid;
  gap: 2px;
}

.mbKv:nth-child(even) {
  justify-items: end;
  text-align: right;
}

.mbKv:nth-child(-n + 2) {
  padding-bottom: 7px;
  border-bottom: 1px solid #efeff2;
}

.mbKv small {
  color: #52525b;
  font-size: 8px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.mbKv b {
  font-size: 10.5px;
  font-weight: 600;
}

.mbKv .owner {
  padding: 2px 7px 2px 2px;
  border-radius: 999px;
  background: #ececf0;
}

.mbStg {
  display: flex;
  grid-column: 1 / -1;
  height: 24px;
  margin-top: 2px;
}

.mbStg span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  flex: 1;
  color: #fff;
  font-size: 9.5px;
  font-weight: 500;
}

.mbStg .isDone {
  background: #3fb46f;
  clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 50%, calc(100% - 9px) 100%, 0 100%);
  border-radius: 4px 0 0 4px;
}

.mbStg .isWon {
  margin-left: -6px;
  background: #2f9e5b;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 9px 50%);
  border-radius: 0 4px 4px 0;
}

.mbStg .i {
  width: 10px;
  height: 10px;
}

.mbStgNote {
  display: flex;
  grid-column: 1 / -1;
  margin-top: -5px;
  color: #71717a;
  font-size: 8.5px;
}

.mbStgNote span {
  flex: 1;
  text-align: center;
}

.mbRound {
  display: flex;
  justify-content: center;
  gap: 12px;
  grid-column: 1 / -1;
}

.mbRound span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #e9ebf4;
  color: var(--c);
}

.mbRound .i {
  width: 13px;
  height: 13px;
}

.mbCall.on {
  animation: mbPress 0.7s ease-out;
}

@keyframes mbPress {
  35% {
    background: #c9ecd6;
    transform: scale(0.88);
  }
}

.mbActs {
  flex: 1;
  min-height: 0;
  margin-top: 10px;
  overflow: hidden;
  padding: 6px 8px 0;
  border-radius: 18px 18px 0 0;
  background: #f7f7f9;
  box-shadow: 0 -1px 0 rgba(0, 0, 0, 0.06), 0 -10px 24px -14px rgba(0, 0, 0, 0.18);
}

.mbGrip {
  display: block;
  width: 30px;
  height: 4px;
  margin: 0 auto 7px;
  border-radius: 2px;
  background: #cfcfd6;
}

.mbActBar {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 26px;
  padding: 0 9px;
  border-radius: 8px;
  background: #e8e8ed;
  font-size: 10.5px;
}

.mbActBar .i {
  width: 13px;
  height: 13px;
  color: #0ea5e9;
}

.mbActBar .i:last-child {
  margin-left: auto;
  color: #3f3f46;
}

.mbSec {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 7px 0 5px;
}

.mbSec span {
  padding: 1px 6px;
  border-radius: 5px;
  background: #fff;
  box-shadow: inset 0 0 0 1px #e4e4e9;
  color: #52525b;
  font-size: 9.5px;
}

.mbSec .mbSecNew {
  background: #dcf5d9;
  box-shadow: inset 0 0 0 1px #b9e6b3;
  color: #2f6a24;
}

.mbSec i {
  flex: 1;
  height: 1px;
  background: #e2e2e7;
}

.mbSec .i {
  width: 11px;
  height: 11px;
}

.mbYear {
  margin-top: 6px !important;
  color: #71717a;
  font-size: 9.5px;
}

.mbAct {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 6px;
  margin-bottom: 6px;
}

.mbActIco {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin-top: 3px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--c) 18%, #fff);
  color: var(--c);
}

.mbActIco .i {
  width: 11px;
  height: 11px;
}

.mbAct > div {
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
}

.mbActT {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 7px;
  border-bottom: 1px solid #f0f0f3;
  white-space: nowrap;
}

.mbActT b {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  color: #2563eb;
  font-size: 10px;
  font-weight: 500;
  text-overflow: ellipsis;
}

.mbActT em,
.mbActT time {
  color: #71717a;
  font-size: 8.5px;
  font-style: normal;
}

.mbActB {
  display: grid;
  gap: 3px;
  padding: 5px 7px 6px;
  font-size: 9.5px;
}

.mbActB .owner {
  font-weight: 400;
}

.mbNewAct {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows 0.5s, opacity 0.4s 0.15s;
}

.mbNewAct > .mbAct {
  min-height: 0;
  overflow: hidden;
}

.mbNewAct.on {
  grid-template-rows: 1fr;
  opacity: 1;
}

.mbNewAct.on > .mbAct > div {
  animation: newGlow 1.8s ease-out;
}

/* formuláre: nová aktivita (spodný panel) a podpis */
.mbFormBar {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mbFormBar b {
  flex: 1;
  font-size: 12.5px;
  font-weight: 500;
}

.mbFormBar .i {
  width: 15px;
  height: 15px;
}

.mbOk {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  color: #1d6fd8;
  transition: background-color 0.3s, color 0.3s;
}

.mbOk.on {
  background: #1d6fd8;
  color: #fff;
}

.mbOk .i {
  width: 14px;
  height: 14px;
}

.mbFld {
  position: relative;
  display: grid;
  gap: 1px;
  min-width: 0;
  padding: 5px 9px 6px;
  border: 1px solid #d9d9df;
  border-radius: 8px;
  background: #fff;
}

.mbFld small,
.mbSign small {
  color: #52525b;
  font-size: 8.5px;
}

.mbFld small i,
.mbSign small i {
  color: #e5484d;
  font-style: normal;
}

.mbFld b {
  min-height: 1.3em;
  overflow: hidden;
  font-size: 10.5px;
  font-weight: 400;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.mbFld > .i {
  position: absolute;
  right: 9px;
  bottom: 8px;
  width: 11px;
  height: 11px;
  color: #52525b;
}

.mbFldRow {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 6px;
}

.mbNote b {
  min-height: 2.6em;
  white-space: normal;
}

.mbDim {
  position: absolute;
  inset: 0;
  z-index: 5;
  background: rgba(10, 10, 15, 0.3);
  opacity: 0;
  transition: opacity 0.4s;
}

.mbDim.on {
  opacity: 1;
}

.mbSheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 6;
  display: grid;
  gap: 8px;
  padding: 7px 12px 22px;
  border-radius: 18px 18px 0 0;
  background: #fff;
  transform: translateY(105%);
  transition: transform 0.55s cubic-bezier(0.3, 0.7, 0.2, 1);
}

.mbSheet.on {
  transform: none;
}

.mbSheet .mbGrip {
  margin-bottom: 0;
}

.mbChips {
  display: flex;
  gap: 5px;
}

.mbChips span {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: #f1f1f4;
  color: #52525b;
  font-size: 9.5px;
}

.mbChips .i {
  width: 10px;
  height: 10px;
}

.mbChips .isOn {
  background: #e3f5ea;
  box-shadow: inset 0 0 0 1px #a7dcbc;
  color: #1f7a45;
}

.mbV3 {
  background: #f2f2f6;
}

.mbForm {
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr);
  gap: 7px;
  flex: 1;
  min-height: 0;
  padding: 4px 10px 70px;
}

.mbSign {
  position: relative;
  display: grid;
  gap: 2px;
  grid-template-rows: auto minmax(0, 1fr) auto;
  padding: 6px 9px 8px;
  border: 1.5px solid #3b82f6;
  border-radius: 8px;
  background: #fff;
}

.mbSign svg {
  width: 100%;
  height: 100%;
  min-height: 0;
}

.mbSign path {
  fill: none;
  stroke: #1d4ed8;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  /* v px: Firefox calc() bez jednotky neprijme a čiaru by nakreslil celú hneď na začiatku */
  stroke-dashoffset: calc((1 - var(--tl, 0)) * 1px);
}

.mbSign p {
  padding-top: 6px;
  border-top: 1px solid #e4e4e9;
  font-size: 9.5px;
  text-align: center;
}

.mbToast {
  position: absolute;
  left: 50%;
  bottom: 22px;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 7px 12px;
  border-radius: 999px;
  background: #18181b;
  color: #fff;
  font-size: 10px;
  white-space: nowrap;
  opacity: 0;
  transform: translate(-50%, 10px);
  transition: opacity 0.35s, transform 0.35s;
}

.mbToast.on {
  opacity: 1;
  transform: translate(-50%, 0);
}

.mbToast .i {
  width: 12px;
  height: 12px;
  color: #6ee7a0;
}

.mbV.isShown {
  opacity: 1;
  transform: none;
}
