.team-access-panel{grid-column:1/-1;width:100%;padding:16px;border:1px solid #c5d6d5;border-radius:12px;background:var(--panel,#fff);color:var(--text,#1b313b)}.team-member-row{flex-wrap:wrap}.team-access-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.team-access-grid>section{border-top:1px solid #d6e2e0;padding-top:10px;min-width:0}.team-access-grid h4{margin:0 0 8px}.team-permission-line{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:8px;align-items:center;padding:9px 0}.team-permission-line>small{grid-column:1/-1;color:var(--muted,#526b6c);font-size:12px}.team-permission-line input[role=switch]{appearance:auto;width:22px;height:22px;accent-color:#087456;cursor:pointer}.team-access-badge{font-size:11px;line-height:1.5;padding:4px 8px;border-radius:30px;font-weight:750;white-space:nowrap}.access-on{background:#dcf5e8;color:#145c38;border:1px solid #82c9a3}.access-off{background:#edf0f2;color:#485a63;border:1px solid #c7d0d5}.team-food-garden,.team-pin-only-note{padding:10px;border-radius:8px;background:#eff3f7;color:#293f50;font-size:13px}.team-change-dialog{width:min(640px,94vw);max-height:90vh;overflow:auto;padding:24px;border:1px solid #b9cfcd;border-radius:16px;background:#fff;color:#19313b}.team-change-dialog h3{font-size:22px;margin:0 0 12px}.team-change-dialog label{display:block;margin:12px 0}.team-change-dialog textarea,.team-change-dialog select,.team-change-dialog input:not([type=checkbox]){display:block;width:100%;background:#fff;color:#19313b;border:1px solid #9dbab7;border-radius:8px;padding:12px}.team-change-dialog input[type=checkbox]{margin-right:10px;accent-color:#087456}.team-change-states{padding:12px;background:#edf5f2;border-radius:8px;font-weight:750}.team-change-actions{display:flex;gap:10px;justify-content:flex-end;margin-top:16px}.team-change-dialog button{min-height:44px;border-radius:8px}.team-change-dialog [role=status]{color:#a02d20}#teamPosRetry{margin:5px 12px}body[data-theme=dark] .team-access-panel{background:#19232e;color:#e9f1f6}@media(max-width:760px){.team-access-grid{grid-template-columns:1fr}.team-change-dialog{padding:16px}.team-access-panel{padding:12px}.team-permission-line{font-size:13px}}
.team-financial-notice{background:#fff1d6;border:1px solid #d9b77b;color:#614414;padding:12px 18px;border-radius:10px;margin:8px 0;line-height:1.5}

/* r102 Sales Rep online-order-only access */
.sales-rep-only-panel{max-width:720px;margin:28px auto;padding:28px;border:1px solid var(--border,#d7e4de);border-radius:22px;background:var(--card,#fff);box-shadow:0 10px 30px rgba(14,57,43,.08)}
.sales-rep-only-panel h2{margin:.25rem 0 .5rem}.sales-rep-only-panel p{max-width:60ch;color:var(--muted,#60766d);line-height:1.5}.sales-rep-only-panel .primary{min-width:220px;margin-top:12px}
#appScreen.sales-rep-mode>:not(.app-header):not(#salesRepOnlyPanel){display:none!important}
#appScreen.sales-rep-mode .dashboard-workspace-toolbar{display:none!important}
#appScreen.sales-rep-mode .app-header .business-location-controls{display:none!important}

/* r103 compact Team cards: details stay collapsed until Manage access is opened. */
.team-access-summary{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:10px 0 4px;padding:10px 12px;border:1px solid var(--border,#d6d9de);border-radius:12px;background:var(--surface-soft,#f8f9fb)}
.team-access-summary-text{display:grid;gap:2px;min-width:0}.team-access-summary-text strong{font-size:.95rem}.team-access-summary-text small{color:var(--muted,#667085);white-space:normal}
.team-manage-access{flex:0 0 auto}.team-access-panel[hidden]{display:none!important}
@media(max-width:720px){.team-access-summary{align-items:flex-start;flex-direction:column}.team-manage-access{width:100%}.team-access-panel{padding:10px 0}.team-access-grid{grid-template-columns:1fr!important}}

/* r104 Sales Rep landing visibility guard */
#appScreen.sales-rep-mode #salesRepOnlyPanel{display:block!important}
#appScreen.sales-rep-mode #salesRepHeaderOrderBtn{display:inline-flex!important;align-items:center;justify-content:center;background:#dff7eb;color:#07583e;border-color:#8acaae;font-weight:800}
@media(max-width:720px){#appScreen.sales-rep-mode #salesRepHeaderOrderBtn{width:auto;max-width:100%;font-size:13px;padding:10px 12px}}
