/* Tuva eier-app: CRM extras (SPEC-crm-full.md P1): feature switches, tags, birthday, preferences, no-show marks, merge. No inline styles (CSP). */
.tagrow{display:flex;gap:6px;flex-wrap:wrap;align-items:center}
.tagc{display:inline-flex;align-items:center;gap:6px;font-size:13px;font-weight:700;padding:3px 10px;border-radius:999px;background:rgba(242,198,109,.16);color:var(--cta)}
.tagc.small{padding:1px 8px;font-size:12px}
.tagc button{border:0;background:transparent;color:inherit;padding:0 2px;min-width:44px;min-height:44px;margin:-10px -8px -10px -6px}
@media (prefers-color-scheme: light){:root:not([data-theme="dark"]) .tagc{color:#7a5410}}
.rowtags{grid-column:1 / -1;padding-bottom:6px;margin-top:-4px}
.tagform{margin-top:10px}
.tagform .input{flex:1;min-width:140px;min-height:44px}
.bdayrow{display:grid;grid-template-columns:1fr 1.4fr;gap:10px;max-width:320px}
.bdayrow .input{min-height:44px}
.ns{color:var(--danger)}
.custbk{flex-direction:row;align-items:center;justify-content:space-between;gap:10px}
.custbk small{display:block}
.custbk .btn{flex:none}
.custconsent{margin-top:10px}

.tagchips .lab{flex:none;align-self:center;font-size:13px;color:var(--muted)}
.tagchips[hidden]{display:none}
.dupbox{margin-top:14px}
.mgpair{display:grid;gap:10px;margin:12px 0}
.mgentry{display:flex;gap:10px;align-items:flex-start;padding:12px;border-radius:12px;border:1px solid var(--line-strong);background:var(--surface-3);overflow-wrap:anywhere}
.mgentry input{width:22px;height:22px;flex:none;accent-color:var(--sage);margin-top:2px}
.crmcard .swrow{min-height:48px}
.crmoff-h{margin:0 0 8px}
#cust-export{white-space:nowrap}
/* the menu (SPEC-tidy-app A1/A2, crm_features.js drawNav): a phone shows the entries marked .pb (Home, Calendar, Customers, Settings or Tuva) and «More»; the rest sits in its sheet (tidy.css) */
#tabmore{display:none}
.custexp[hidden]{display:none}
/* the tag chips look like the quick views (customers.css) but are a row of their own */
.tagchips{display:flex;flex-wrap:wrap;gap:8px;padding:6px 0 4px}
.tagchips::-webkit-scrollbar{display:none}
.tagchips button{flex:none;white-space:nowrap;min-height:44px;padding:0 14px;border-radius:999px;border:1px solid var(--line-strong);background:transparent;font-weight:600;font-size:14px;color:var(--text)}
.tagchips button[aria-pressed="true"]{background:var(--text);color:var(--surface);border-color:var(--text)}
/* a very long first name or tag never widens the card */
.custcard p, .custcard .custsum, .custcard .tagc, .custcard .mgentry{overflow-wrap:anywhere}
.custexp{margin-top:14px}
#cust-dup{display:flow-root}
/* the green «On» / «Always on» labels: readable (4.5:1) on the dark and the light background */
.rowtag.okt,.rowtag.st-active{color:color-mix(in srgb,var(--ok,#2B8058) 55%,var(--text))}
/* a choice control inside a card sits flat (its tinted background is enough): no second outlined box inside the card */
.card .segctl{border-color:transparent}
.view .crmmods > .lead,.view .crmmods > .hint{max-width:540px}     /* Choose tools: the intro and footer stay short lines */
.mgbtns .btn.primary{flex:2 1 auto;white-space:nowrap}     /* «Slå sammen til én» stays on one line at 390 */
/* With all the CRM tools on, the computer's left menu has 13 entries: it scrolls inside itself, and on a short laptop screen the rows sit a little closer, so «Innstillinger» is always reachable */
@media (min-width:900px){
  .tabbar.crmnav{overflow-y:auto;overscroll-behavior:contain}
  .tabbar.crmnav button{flex:none}
}
@media (min-width:900px) and (max-height:860px){
  .tabbar.crmnav{gap:2px;padding-top:20px;padding-bottom:16px}
  .tabbar.crmnav button{min-height:44px}
}
