/* Tuva eier-app: how a LOCKED thing looks (SPEC-show-all-locked.md; markup from locked.js). One look everywhere: greyed, a lock, «Med i Pluss»,
   «Oppgrader nå». The tag and the button are NOT faded (they are the part that has to be read: text on the amber tag >= 4.5:1 in light and dark);
   only the thing itself is greyed. No inline styles (CSP). */
.lk-line{display:flex;flex-wrap:wrap;align-items:center;gap:6px 8px;margin-top:6px;min-width:0}
.lk-tag{display:inline-flex;align-items:center;gap:4px;font-size:12px;font-weight:700;line-height:1.2;padding:4px 9px;border-radius:999px;background:color-mix(in srgb,var(--cta) 20%,transparent);color:var(--cta);white-space:nowrap}
.lk-tag svg{width:14px;height:14px;flex:none}
@media (prefers-color-scheme: light){.lk-tag{color:#5f4106;background:#f7e6bd}}
.lk-legal{background:var(--surface-3);color:var(--text)}
.lk-legal{white-space:normal;max-width:100%;border-radius:12px;text-align:left}           /* the long «Not available for your type of business» wraps instead of running off a 320 px sheet */
.lk-up{display:inline-flex;align-items:center;min-height:28px;padding:0 12px;border-radius:999px;background:var(--cta);color:var(--cta-ink);font-weight:700;font-size:12.5px;white-space:nowrap}

/* a row in a list (the Tuva tab, tools, Hjelp) */
.row.is-locked{background:var(--surface-3);align-items:flex-start}
.row.is-locked .rowic{opacity:.75}
.row.is-locked .rowtitle,.row.is-locked .rowmeta{opacity:.9}       /* still greyed, but the words stay readable (contrast >= 4.5:1) */
.row.is-locked .rowmain{min-width:0}
.row.is-locked:focus-visible,.lk-chip:focus-visible,.lk-block:focus-visible,.lock-cover:focus-visible,.lockbtn:focus-visible{outline:3px solid var(--focus);outline-offset:2px}

/* a switch or a choice that stays on the screen, greyed and dead, with the tag over it */
.lock-inner{opacity:.68;filter:saturate(.5)}
.lk-bar{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:6px 8px;padding:10px 10px 0;min-width:0}   /* in the flow ABOVE the control: it can never cover a label, at any width */
.lock-cover{cursor:pointer;height:100%}

/* a full-width dashed button in place of a choice */
.lockbtn{height:auto;min-height:52px;flex-wrap:wrap;padding:10px 14px;color:var(--text);cursor:pointer}
.lockbtn > span:first-of-type{flex:1 1 140px;min-width:0}
.lockbtn svg{flex:none;width:18px;height:18px}
.lockbtn .lk-line{margin:0;margin-left:auto}

/* a chip: a customer filter, an «Ask Tuva» example */
.lk-chip{display:inline-flex;align-items:center;gap:6px;flex:none;white-space:nowrap;min-height:44px;padding:0 14px;border-radius:999px;border:1.5px dashed var(--line-strong);background:var(--surface-3);color:var(--text);font-weight:600;font-size:14px;cursor:pointer}
.lk-chip svg{width:14px;height:14px;flex:none}
.lk-chip > span{opacity:.78}
.lk-chip small{font-size:11px;font-weight:700;padding:2px 7px;border-radius:999px;background:color-mix(in srgb,var(--cta) 20%,transparent);color:var(--cta)}
@media (prefers-color-scheme: light){.lk-chip small{color:#5f4106;background:#f7e6bd}}
.custchips .lk-chip,.askchips .lk-chip{border:1.5px dashed var(--line-strong);background:var(--surface-3)}

/* a block inside a card (a customer's visits and offers) */
.lk-block{display:block;width:100%;margin-top:12px;padding:12px 14px;text-align:left;border:1.5px dashed var(--line-strong);border-radius:14px;background:var(--surface-3);color:var(--text);cursor:pointer}
.lk-block b{display:block;opacity:.78}

/* a column header in a table */
.lk-th{white-space:nowrap}
.lk-th .lk-tag{margin-left:6px}
.lk-cell{color:var(--muted)}

/* a locked screen: an example layout (grey boxes, no figures) with the lock over it */
.lk-screen{position:relative}
.lk-skel{opacity:.55;margin-bottom:14px}
.lk-tiles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-bottom:12px}
.lk-tiles i{display:block;height:72px;border-radius:14px;background:var(--surface-3);border:1px solid var(--line)}
.lk-bars i{display:block;height:12px;border-radius:999px;background:var(--surface-3);margin-bottom:10px}
.lk-bars i:nth-child(1){width:92%}.lk-bars i:nth-child(2){width:74%}.lk-bars i:nth-child(3){width:84%}.lk-bars i:nth-child(4){width:52%}
.lk-card{text-align:left}
@media (min-width:1024px){#crm-mod{width:100%;max-width:1080px;margin:0 auto}#crm-mod > .pad{padding-left:32px;padding-right:32px}}   /* the same column as the heading above it */
.lk-card h2{margin:0 0 6px;font-size:18px}
.lk-card .lk-line{margin:10px 0 12px}
.lk-card .btnrow{margin-top:4px}

/* the one lock sheet */
.lk-comes{font-weight:700}

/* Home: a locked tile, the one-line upsell, the pause chip on the dark card */
.lk-stat{display:block;width:100%;text-align:left;border:1.5px dashed var(--line-strong);background:var(--surface-3);color:var(--text);cursor:pointer;font:inherit}
.lk-stat b svg{width:28px;height:28px;opacity:.78}
.lk-stat span{color:var(--text)}
.lk-stat .lk-tag{margin-top:6px;font-size:11px;padding:3px 5px;gap:3px;max-width:100%}
.lk-stat .lk-tag svg{width:12px;height:12px}
.lk-stat .lk-tag{display:flex;white-space:normal;align-items:flex-start;width:fit-content}
.lk-stat .lk-tag span{min-width:0}
.notice.lk-upline{display:flex;align-items:center;gap:10px}
.notice.lk-upline .nt{flex:1}
.pause .lk-chip{width:100%;justify-content:center}
.lk-thwrap{display:flex;flex-direction:column;align-items:flex-start;gap:2px}
.lk-thbtn{display:inline-flex;align-items:center;gap:5px;min-height:44px;padding:0;border:0;background:transparent;font:inherit;font-weight:600;color:var(--text);cursor:pointer;white-space:nowrap}
.lk-thbtn svg{width:14px;height:14px}
.lk-thwrap .lk-tag{margin:0 0 4px}
.custtbl th.c-next.lk-th{width:200px}.custtbl th.c-offers.lk-th{width:136px}
.custtbl td.lk-cell{color:var(--muted)}
.lock-cover{background:transparent}
.gridlist > li > .row.is-locked{height:100%}
/* the menu: a tool above the package is listed greyed, with the lock and the package under its name (opens its locked example screen) */
.tabbar button.crmtab.is-locked{flex-wrap:wrap;align-items:center;row-gap:0;height:auto;padding-top:6px;padding-bottom:8px}
.tabbar button.crmtab.is-locked .tablabel{opacity:1;flex:1 1 calc(100% - 50px);min-width:0}
.tabbar button.crmtab .tabtag{font-size:11px;padding:2px 7px;gap:3px;margin:2px 0 0 36px;display:inline-flex;align-items:center;flex:0 0 auto}
.tabbar button.crmtab .tabtag svg{width:12px;height:12px}
.tabbar button.crmtab .lk-ic{display:inline-flex}
