/* My Business — five tabs (F1) */

.biz-tabs {
  display: flex;
  gap: 0.25rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 0 1rem;
  padding: 0.15rem 0;
  border-bottom: 1px solid var(--border, #e5e7eb);
  scrollbar-width: none;
}
.biz-tabs::-webkit-scrollbar { display: none; }

.biz-tab {
  flex: 0 0 auto;
  appearance: none;
  border: none;
  background: transparent;
  color: var(--muted, #6b7280);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.55rem 0.85rem;
  border-radius: 8px 8px 0 0;
  cursor: pointer;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.biz-tab:hover { color: var(--text, #111); }
.biz-tab[aria-selected="true"] {
  color: var(--primary, #0f766e);
  border-bottom-color: var(--primary, #0f766e);
}

.biz-panel { min-height: 12rem; }

.biz-empty {
  padding: 1.5rem 1rem;
  text-align: center;
  color: var(--muted, #6b7280);
  font-size: 0.95rem;
}
.biz-empty strong { display: block; color: var(--text, #111); margin-bottom: 0.35rem; }

.biz-section-title {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  font-weight: 700;
}

/* Section hubs: big tappable buttons per tab */
.biz-hub-intro { margin: 0 0 0.9rem; font-size: 0.9rem; }
.biz-hub { display: grid; gap: 0.65rem; }
.biz-hub-btn {
  display: flex; align-items: center; gap: 0.85rem;
  padding: 1rem 1rem; min-height: 4.25rem;
  background: var(--surface, #fff);
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 14px;
  color: var(--text, #111); text-decoration: none;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
  transition: border-color .15s, box-shadow .15s, transform .05s;
  -webkit-tap-highlight-color: transparent;
}
.biz-hub-btn:hover { border-color: var(--primary, #0f766e); box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.biz-hub-btn:active { transform: scale(0.99); }
.biz-hub-btn:focus-visible { outline: 2px solid var(--primary, #0f766e); outline-offset: 2px; }
.biz-hub-ico {
  flex: 0 0 auto; width: 2.6rem; height: 2.6rem; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface-2, #f3f4f6); font-size: 1.3rem;
}
.biz-hub-text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 0.15rem; }
.biz-hub-title { font-weight: 700; font-size: 1rem; }
.biz-hub-desc { font-size: 0.85rem; color: var(--muted, #6b7280); line-height: 1.3; }
.biz-hub-chev { flex: 0 0 auto; font-size: 1.6rem; line-height: 1; color: var(--muted, #6b7280); }
.biz-hub-btn.is-soon .biz-hub-title { color: var(--text, #111); }
.biz-soon {
  font-style: normal; font-size: 0.68rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.04em; padding: 0.1rem 0.4rem; margin-left: 0.35rem;
  border-radius: 999px; background: var(--surface-2, #f3f4f6); color: var(--muted, #6b7280);
  vertical-align: middle;
}
.biz-back {
  display: inline-block; margin: 0 0 0.5rem; padding: 0.35rem 0.1rem;
  color: var(--primary, #0f766e); font-weight: 600; font-size: 0.95rem; text-decoration: none;
}
.biz-back:hover { text-decoration: underline; }
.biz-section-heading { margin: 0 0 0.85rem; font-size: 1.25rem; }

/* Social media list (Profile → Social media) */
.biz-social-list { display: grid; }
.biz-social-row { display: flex; align-items: center; gap: 0.85rem; padding: 0.7rem 0; border-bottom: 1px solid var(--border, #e5e7eb); }
.biz-social-row:last-child { border-bottom: none; }
.biz-social-ico {
  flex: 0 0 auto; width: 2.4rem; height: 2.4rem; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface-2, #f3f4f6); color: var(--primary, #0f766e);
}
.biz-social-ico svg.i { width: 1.2rem; height: 1.2rem; }
.biz-social-text { min-width: 0; display: flex; flex-direction: column; gap: 0.1rem; }
.biz-social-label { font-weight: 600; font-size: 0.95rem; }
.biz-social-val { font-size: 0.85rem; color: var(--text, #111); word-break: break-all; }
.biz-social-row.is-empty .biz-social-ico { color: var(--muted, #6b7280); opacity: 0.7; }
.biz-social-row.is-empty .biz-social-val { color: var(--muted, #6b7280); }
.biz-social-edit { display: flex; align-items: flex-start; gap: 0.85rem; }
.biz-social-edit .biz-social-ico { margin-top: 1.55rem; }
.biz-social-edit .form-group { flex: 1 1 auto; min-width: 0; }

/* Finance → Account details: linked accounts */
.biz-acct { padding: 0.85rem 0; border-bottom: 1px solid var(--border, #e5e7eb); }
.biz-acct:last-child { border-bottom: none; padding-bottom: 0; }
.biz-acct:first-of-type { padding-top: 0; }
.biz-acct-head { display: flex; align-items: center; flex-wrap: wrap; gap: 0.25rem; margin-bottom: 0.4rem; }
.biz-acct-body { display: grid; gap: 0.4rem; word-break: break-all; }

/* Mistamonie full-screen section: covers the app chrome; only Back exits */
.mm-full {
  position: fixed; inset: 0; z-index: 200; overflow-y: auto;
  background: var(--bg, #fafaf7); color: var(--text, #111);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.mm-full-head {
  position: sticky; top: 0; z-index: 1; display: flex; align-items: center; gap: 0.75rem;
  padding: calc(0.75rem + env(safe-area-inset-top, 0px)) 1rem 0.75rem;
  background: var(--surface, #fff); border-bottom: 1px solid var(--border, #e5e7eb);
}
.mm-full-back { font-weight: 600; text-decoration: none; color: var(--primary-text, var(--primary, #0f766e)); padding: 0.35rem 0.25rem; }
.mm-full-title { margin: 0; font-size: 1.1rem; }
.mm-full-body { max-width: 560px; margin: 0 auto; padding: 1rem; }

/* Staff form: permissions grouped per app (build 168). Own classes, because .form-group input
   (width:100%, 44px box) used to stretch every checkbox on mobile. */
.staff-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 0.5rem; padding: 0.65rem 0; border-bottom: 1px solid var(--border); }
.staff-row-main { flex: 1 1 12rem; min-width: 0; overflow-wrap: anywhere; }
.staff-row-actions { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.perm-wrap { margin: 0 0 1rem; min-width: 0; }
.perm-label { display: block; font-size: 0.9rem; font-weight: 500; margin-bottom: 0.4rem; }
.perm-app { border: 1px solid var(--border); border-radius: 8px; margin: 0 0 0.75rem; min-width: 0; }
.perm-app > summary { display: flex; align-items: center; min-height: 44px; padding: 0 0.85rem; font-weight: 700; font-size: 0.95rem; cursor: pointer; list-style: none; }
.perm-app > summary::-webkit-details-marker { display: none; }
.perm-app > summary::after { content: "\25BE"; margin-left: auto; opacity: 0.6; }
.perm-app[open] > summary::after { content: "\25B4"; }
.perm-app-body { padding: 0 0.85rem 0.6rem; }
.perm-sub { margin-top: 0.4rem; }
.perm-sub-title { font-weight: 600; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; opacity: 0.7; padding-top: 0.35rem; }
.perm-check { display: flex; align-items: center; gap: 0.65rem; min-height: 44px; margin: 0; font-size: 0.95rem; font-weight: 400; cursor: pointer; }
.perm-check input { width: 22px; height: 22px; min-height: 0; flex: none; margin: 0; padding: 0; accent-color: var(--primary); cursor: pointer; }
.perm-check span { min-width: 0; overflow-wrap: anywhere; }
.perm-later { margin: 0.25rem 0 0.35rem; font-size: 0.85rem; }
.staff-form-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
@media (max-width: 480px) {
  #staff-form-card { padding: 1rem; }
  .staff-form-actions .btn { flex: 1 1 0; min-height: 44px; }
  .staff-row-actions .btn { min-height: 40px; }
}

/* Workspace Team: staff as profile tiles (person icon, name below) with a Manage / Suspend / Delete dropdown */
.ws-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.9rem 0.75rem; }
.ws-tile { position: relative; min-width: 0; }
.ws-tile-btn { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 0.4rem; padding: 0.4rem 0.2rem; border: 0; border-radius: 12px; background: transparent; color: inherit; font: inherit; cursor: pointer; }
.ws-tile-btn:hover, .ws-tile-btn:focus-visible, .ws-tile-btn[aria-expanded="true"] { background: var(--soft-bg, #f3f4f6); outline: none; }
.ws-avatar { width: 56px; height: 56px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--soft-bg, #f0eee6); color: var(--muted, #6f6b63); }
.ws-name { max-width: 100%; font-size: 0.85rem; font-weight: 600; text-align: center; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ws-tile.is-suspended .ws-avatar, .ws-tile.is-suspended .ws-name { opacity: 0.5; }
.ws-menu { position: absolute; top: calc(100% - 0.2rem); left: 0; z-index: 30; min-width: 8.5rem; padding: 0.25rem; border: 1px solid var(--border, #e5e2d9); border-radius: 12px; background: var(--surface, #fff); box-shadow: 0 8px 24px rgba(0,0,0,.18); display: flex; flex-direction: column; }
.ws-tile:nth-child(3n) .ws-menu { left: auto; right: 0; }
.ws-menu button { border: 0; background: transparent; color: var(--text, #111); font: inherit; font-size: 0.9rem; text-align: left; padding: 0.6rem 0.8rem; border-radius: 8px; cursor: pointer; }
.ws-menu button:hover, .ws-menu button:focus-visible { background: var(--soft-bg, #f3f4f6); outline: none; }
.ws-menu .ws-danger { color: var(--danger, #b91c1c); }
@media (min-width: 560px) {
  .ws-grid { grid-template-columns: repeat(4, 1fr); }
  .ws-tile:nth-child(3n) .ws-menu { left: 0; right: auto; }
  .ws-tile:nth-child(4n) .ws-menu { left: auto; right: 0; }
}

/* Business ID: first-class, right under the My business title */
.biz-id{display:flex;flex-wrap:wrap;align-items:center;gap:.35rem .6rem;margin:.5rem 0 .25rem;padding:.6rem .8rem;background:var(--surface);border:1px solid var(--border);border-radius:12px}
.biz-id-label{font-size:.8rem;font-weight:700;text-transform:uppercase;letter-spacing:.04em;color:var(--muted)}
.biz-id-code{font-size:1.3rem;letter-spacing:.06em;color:var(--text)}
.biz-id-copy{min-height:36px;padding:0 .8rem;border:1.5px solid var(--border);border-radius:9px;background:none;color:var(--primary-text);font:inherit;font-weight:700;cursor:pointer}
.biz-id-note{flex-basis:100%;font-size:.82rem}
