:root {
  --bg: #f5f6f8;
  --surface: #ffffff;
  --text: #1c2230;
  --muted: #6b7280;
  --border: #e3e6eb;
  --primary: #2952cc;
  --primary-hover: #1f40a3;
  --danger: #c0392b;
  --success-bg: #e7f6ec;
  --success-text: #1d6b3a;
  --error-bg: #fdecea;
  --error-text: #9b2c22;
  --info-bg: #eaf0fd;
  --warning-bg: #fff6e0;
  --radius: 8px;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.06);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 1.6rem; margin: 0; }
h2 { font-size: 1.15rem; margin: 0 0 12px; }
h3 { margin: 0; }

/* Mise en page */
.topbar {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  padding: 12px 24px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.brand { font-weight: 700; font-size: 1.2rem; color: var(--text); }
.nav { display: flex; gap: 16px; flex-wrap: wrap; flex: 1; }
.nav a { color: var(--text); display: inline-flex; align-items: center; gap: 6px; }
.nav a.active { color: var(--primary); font-weight: 600; }
.nav svg { width: 18px; height: 18px; flex: none; }
.account { display: flex; align-items: center; gap: 16px; }
.container { max-width: 1100px; margin: 0 auto; padding: 24px 16px 48px; }
.auth-container { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.page-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  margin-bottom: 20px;
}
.narrow { max-width: 560px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }

/* Authentification */
.auth-card { width: 100%; max-width: 400px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 32px; box-shadow: var(--shadow); }
.brand-large { text-align: center; color: var(--primary); margin-bottom: 8px; }
.auth-card h2 { text-align: center; }
.trial-pitch { background: var(--info-bg); padding: 10px 12px; border-radius: var(--radius); font-size: 0.9rem; }

/* Formulaires */
.form label { display: flex; flex-direction: column; gap: 6px; font-weight: 500; margin-bottom: 14px; }
.form .checkbox { flex-direction: row; align-items: flex-start; gap: 8px; font-weight: 400; }
input, select, textarea {
  font: inherit;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
  color: var(--text);
  width: 100%;
}
input[type="checkbox"] { width: auto; margin-top: 4px; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--primary); outline-offset: -1px; }
.input-num { text-align: right; }
.inline-form { display: inline-flex; gap: 6px; align-items: center; margin: 0; }
.inline-form select { width: auto; }

.btn {
  display: inline-block;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
}
.btn:hover { background: var(--bg); text-decoration: none; }
.btn-primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); }
.btn-danger { color: var(--danger); border-color: var(--danger); }
.btn-ghost { border-color: transparent; background: transparent; }
.btn-block { width: 100%; }
.link-button { background: none; border: none; padding: 0; color: var(--primary); font: inherit; cursor: pointer; }
.link-button.danger { color: var(--danger); }
.icon-button { background: none; border: none; color: var(--muted); cursor: pointer; font-size: 1rem; }
.icon-button:hover { color: var(--danger); }

/* Messages */
.alert, .banner { padding: 12px 16px; border-radius: var(--radius); margin-bottom: 16px; }
.alert-success { background: var(--success-bg); color: var(--success-text); }
.alert-error { background: var(--error-bg); color: var(--error-text); }
.banner-info { background: var(--info-bg); }
.banner-warning { background: var(--warning-bg); }

.credit-badge { background: var(--info-bg); padding: 4px 10px; border-radius: 999px; font-size: 0.85rem; font-weight: 600; }
.credit-badge-empty { background: var(--error-bg); color: var(--error-text); }

/* Tableaux */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: 10px 8px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: middle; }
.table th { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.03em; color: var(--muted); font-weight: 600; }
.num { text-align: right !important; white-space: nowrap; }
.row-actions { display: flex; gap: 12px; justify-content: flex-end; }
.lines-table td:first-child { min-width: 240px; }
.lines-table td:nth-child(2) { width: 120px; min-width: 110px; }
.lines-table td:nth-child(3) { width: 140px; min-width: 120px; }
.lines-table select { width: 100px; }
.lines-table + template + .btn { margin-top: 12px; }

.totals { display: grid; grid-template-columns: auto auto; justify-content: end; gap: 6px 24px; margin: 16px 0 0; }
.totals dt { color: var(--muted); }
.totals dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.totals .grand { font-weight: 700; color: var(--text); font-size: 1.1rem; }

.status { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 0.8rem; font-weight: 600; background: #eef0f3; color: var(--muted); }
.status-envoye, .status-envoyee { background: var(--info-bg); color: var(--primary); }
.status-accepte, .status-payee { background: var(--success-bg); color: var(--success-text); }
.status-refuse { background: var(--error-bg); color: var(--error-text); }

/* Tableau de bord */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 20px; }
.stat { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; }
.stat-label { color: var(--muted); font-size: 0.85rem; }
.stat-value { font-size: 1.6rem; font-weight: 700; font-variant-numeric: tabular-nums; }

/* Crédits */
.packs { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.pack { display: flex; flex-direction: column; gap: 8px; text-align: center; }
.pack-credits { font-size: 1.4rem; font-weight: 700; }
.pack-price { font-size: 1.1rem; color: var(--primary); font-weight: 600; }
.positive { color: var(--success-text); }
.negative { color: var(--error-text); }

/* Document imprimable */
.paper { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 48px; max-width: 860px; margin: 0 auto; box-shadow: var(--shadow); }
.paper-head { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 32px; }
.paper-company { font-size: 1.15rem; }
.paper-title { text-align: right; }
.paper-title h1 { color: var(--primary); letter-spacing: 0.05em; }
.paper-client { margin-left: auto; width: fit-content; min-width: 260px; padding: 16px; border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 32px; }
.paper-notes { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--border); }
.paper-foot { margin-top: 40px; color: var(--muted); }
.signature { min-height: 80px; }

.pre { white-space: pre-line; }
.muted { color: var(--muted); }
.small { font-size: 0.85rem; }
.center { text-align: center; }

@media (max-width: 640px) {
  .topbar { padding: 12px 16px; gap: 12px; }
  .paper { padding: 20px; }
  .paper-title { text-align: left; }
}

@media print {
  body { background: #fff; }
  .no-print { display: none !important; }
  .container { padding: 0; max-width: none; }
  .paper { border: none; box-shadow: none; padding: 0; max-width: none; }
}

/* Paiement Mobile Money */
.alert-info { background: var(--info-bg); }
.payment-summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; background: var(--bg); border-radius: var(--radius); margin-bottom: 16px; }
.payment-summary strong { font-size: 1.2rem; white-space: nowrap; }
.operator-choice { border: none; padding: 0; margin: 0 0 16px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.operator-choice legend { font-weight: 500; margin-bottom: 8px; padding: 0; }
.form .operator-option { flex-direction: row; align-items: center; gap: 10px; margin: 0; padding: 12px; border: 2px solid var(--border); border-radius: var(--radius); cursor: pointer; border-left-width: 6px; }
.operator-option input { width: auto; margin: 0; }
.operator-option:has(input:checked) { border-color: var(--primary); background: var(--info-bg); }
.operator-name { font-weight: 600; }
.operator-option.operator-orange { border-left-color: #ff7900; }
.operator-option.operator-wave { border-left-color: #1dc8f2; }
.operator-option.operator-mtn { border-left-color: #ffcc00; }
.operator-option.operator-moov { border-left-color: #0066b3; }
.operators-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: -4px 0 20px; }
.operator-tag { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 0.8rem; font-weight: 600; color: #fff; }
.operator-tag.operator-orange { background: #ff7900; }
.operator-tag.operator-wave { background: #1dc8f2; color: #0b2a3a; }
.operator-tag.operator-mtn { background: #ffcc00; color: #1c2230; }
.operator-tag.operator-moov { background: #0066b3; }
.operator-large { font-size: 1.1rem; padding: 6px 16px; margin-bottom: 12px; }
.simulation { margin: 0 auto; text-align: center; }
.simulation .actions { justify-content: center; }
@media (max-width: 640px) { .operator-choice { grid-template-columns: 1fr; } }

/* Application installable (PWA) et affichage mobile */
[hidden] { display: none !important; }
.btn-small { padding: 4px 10px; font-size: 0.85rem; }
@media (max-width: 640px) {
  .topbar { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; }
  /* Barre de navigation fixée en bas de l'écran */
  .nav {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    display: grid; grid-template-columns: repeat(5, 1fr); gap: 0;
    background: var(--surface); border-top: 1px solid var(--border);
    box-shadow: 0 -2px 8px rgba(16, 24, 40, 0.06);
    padding: 4px 2px calc(4px + env(safe-area-inset-bottom));
  }
  .nav a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px 2px; color: var(--muted); font-size: 0.68rem; line-height: 1.15; text-align: center; border-radius: var(--radius); }
  .nav a:hover { text-decoration: none; }
  .nav a.active { color: var(--primary); font-weight: 600; }
  .nav svg { width: 22px; height: 22px; }
  .nav a.active svg { stroke-width: 2.4; }
  .has-nav .container { padding-bottom: calc(88px + env(safe-area-inset-bottom)); }
  .topbar-logout { display: none; }
  .account { gap: 10px; }
  .account [data-install] { display: none !important; }
  .page-head h1 { font-size: 1.35rem; }
  .actions .btn { flex: 1 1 auto; text-align: center; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat-value { font-size: 1.2rem; }
}

/* Choix du modèle de devis / facture */
.template-picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.form .template-option { position: relative; margin: 0; gap: 2px; padding: 10px; border: 2px solid var(--border); border-radius: var(--radius); cursor: pointer; }
.template-option input { position: absolute; opacity: 0; pointer-events: none; }
.template-option:has(input:checked) { border-color: var(--primary); background: var(--info-bg); }
.template-option:has(input:focus-visible) { outline: 2px solid var(--primary); outline-offset: 2px; }
.template-name { font-weight: 600; }
.template-thumb { display: flex; flex-direction: column; gap: 5px; height: 96px; padding: 10px; margin-bottom: 6px; overflow: hidden; background: #fff; border: 1px solid var(--border); border-radius: 4px; }
.thumb-head { height: 14px; width: 45%; margin: 0 0 6px auto; background: var(--primary); border-radius: 2px; }
.thumb-line { height: 5px; background: #d9dde4; border-radius: 2px; }
.thumb-short { width: 60%; }
.thumb-total { height: 8px; width: 40%; margin: auto 0 0 auto; background: #9aa3b2; border-radius: 2px; }
.thumb-moderne .thumb-head { width: auto; height: 24px; margin: -10px -10px 6px; border-radius: 0; }
.thumb-moderne .thumb-line:nth-of-type(2) { background: #c9d4f5; }
.thumb-moderne .thumb-total { background: var(--primary); }
.thumb-elegant .thumb-head { width: 50%; height: 10px; margin: 0 auto 8px; background: #9a7b3c; box-shadow: 0 6px 0 -4px #9a7b3c; }
.thumb-elegant .thumb-line { background: #eadfc8; }
.thumb-elegant .thumb-total { background: #9a7b3c; }
.thumb-minimal .thumb-head { width: 55%; height: 16px; margin-left: 0; background: #111; border-radius: 0; }
.thumb-minimal .thumb-line { background: #e5e5e5; border-radius: 0; }
.thumb-minimal .thumb-total { background: #111; border-radius: 0; }

/* Logo de l'entreprise */
.paper-logo { display: block; max-width: 200px; max-height: 80px; object-fit: contain; margin-bottom: 12px; }
.logo-preview { display: block; max-width: 220px; max-height: 110px; object-fit: contain; padding: 8px; background: #fff; border: 1px dashed var(--border); border-radius: var(--radius); }

/* Modèles de document — Classique : styles .paper par défaut. */
.paper { -webkit-print-color-adjust: exact; print-color-adjust: exact; }

/* Moderne */
.tpl-moderne .paper-head { margin: -48px -48px 32px; padding: 32px 48px; background: var(--primary); color: #fff; border-radius: var(--radius) var(--radius) 0 0; }
.tpl-moderne .paper-title h1 { color: #fff; }
.tpl-moderne .paper-logo { padding: 6px; background: #fff; border-radius: 6px; }
.tpl-moderne .paper-client { margin-left: 0; border: none; border-left: 4px solid var(--primary); border-radius: 0 var(--radius) var(--radius) 0; background: #eef2fc; }
.tpl-moderne .paper-lines th { background: var(--primary); color: #fff; }
.tpl-moderne .paper-lines tbody tr:nth-child(even) { background: #f5f7fd; }
.tpl-moderne .totals dt.grand { color: var(--primary); align-self: center; }
.tpl-moderne .totals dd.grand { padding: 8px 14px; background: var(--primary); color: #fff; border-radius: var(--radius); }

/* Élégant */
.tpl-elegant { --gold: #9a7b3c; font-family: Georgia, 'Times New Roman', serif; }
.tpl-elegant .paper-head { flex-direction: column; align-items: center; text-align: center; padding-bottom: 20px; border-bottom: 3px double var(--gold); }
.tpl-elegant .paper-logo { margin: 0 auto 12px; }
.tpl-elegant .paper-company { font-size: 1.5rem; font-variant: small-caps; letter-spacing: 0.05em; }
.tpl-elegant .paper-title { text-align: center; }
.tpl-elegant .paper-title h1 { color: var(--gold); font-weight: 400; letter-spacing: 0.3em; }
.tpl-elegant .paper-client { margin: 0 auto 32px; text-align: center; border: none; border-top: 1px solid var(--gold); border-bottom: 1px solid var(--gold); border-radius: 0; }
.tpl-elegant .paper-lines th { color: var(--gold); border-bottom: 1px solid var(--gold); }
.tpl-elegant .totals .grand { color: var(--gold); padding-top: 6px; border-top: 3px double var(--gold); }

/* Minimal */
.tpl-minimal { color: #111; }
.tpl-minimal .paper-title h1 { color: #111; font-size: 2.4rem; font-weight: 800; letter-spacing: -0.02em; }
.tpl-minimal .paper-client { margin-left: 0; padding: 0; border: none; }
.tpl-minimal .paper-lines th { color: #111; border-bottom: 2px solid #111; }
.tpl-minimal .totals dt, .tpl-minimal .totals dd { color: #111; }
.tpl-minimal .totals .grand { font-size: 1.4rem; padding-top: 6px; border-top: 2px solid #111; }

@media (max-width: 640px) {
  .tpl-moderne .paper-head { margin: -20px -20px 24px; padding: 20px; }
}

@media print {
  .tpl-moderne .paper-head { margin: 0 0 32px; padding: 24px; border-radius: 0; }
}

/* Main d'œuvre sur le formulaire */
.labor-field { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); }
.labor-field label { margin: 0; }
.labor-field input { max-width: 200px; }

/* Suivi des travaux */
.work-card { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.work-card h2 { margin-bottom: 6px; }
.work-steps { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.work-status { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 0.8rem; font-weight: 600; white-space: nowrap; }
.work-a_demarrer { background: #fff4e0; color: #9a5b00; }
.work-en_cours { background: var(--info-bg); color: var(--primary); }
.work-termine { background: #e3f6e8; color: #1c7a3a; }

/* WhatsApp */
.btn-whatsapp { background: #25d366; border-color: #25d366; color: #fff; }
.btn-whatsapp:hover { background: #1ebe5b; }

/* Montant en lettres */
.amount-words { margin: 16px 0 0; font-size: 0.95rem; }

/* Paiements et acomptes */
.status-acompte { background: #fff4e0; color: #9a5b00; }
.payments-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.payments-head h2 { margin: 0; }
.payment-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; margin-top: 12px; }
.payment-form label { margin: 0; flex: 1 1 160px; }

/* Recherche */
.search-form { display: flex; gap: 8px; margin-bottom: 16px; }
.search-form input { flex: 1; min-width: 0; }

/* Facture lisible sur téléphone : colonnes resserrées, défilement dans la feuille si besoin */
@media (max-width: 640px) {
  .paper { overflow-x: auto; }
  .paper-lines th, .paper-lines td { padding: 8px 4px; font-size: 0.85rem; }
  .paper-lines th { font-size: 0.7rem; }
}

/* Signature électronique des devis */
.sign-card p { margin: 0 0 12px; }
.sign-done { color: #1c7a3a; }
.sign-link { display: flex; flex-direction: column; gap: 4px; margin-top: 12px; color: var(--muted); }
.sign-link input { font-size: 0.85rem; }
.sign-intro { max-width: 860px; margin: 0 auto 12px; }
.sign-form { max-width: 860px; margin: 20px auto 0; }
.sign-pad-head { display: flex; justify-content: space-between; align-items: baseline; font-weight: 500; margin-bottom: 6px; }
.sign-pad { display: block; width: 100%; height: 200px; margin-bottom: 14px; background: #fff; border: 2px dashed var(--border); border-radius: var(--radius); touch-action: none; cursor: crosshair; }
.sign-pad:focus { outline: 2px solid var(--primary); outline-offset: 2px; }
.error-text { color: #b42318; min-height: 1em; margin: 0 0 8px; }
.signature-signed { display: flex; flex-direction: column; gap: 6px; color: var(--text); }
.signature-img { width: 240px; max-width: 100%; height: auto; }

/* Profil */
.back-link { margin: 0 0 8px; font-size: 0.9rem; }
.profile-head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.profile-avatar { width: 56px; height: 56px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--info-bg); color: var(--primary); font-size: 1.5rem; font-weight: 700; }
.profile-logo { object-fit: contain; background: #fff; border: 1px solid var(--border); padding: 4px; }
.profile-menu { padding: 0; margin-bottom: 16px; overflow: hidden; }
.profile-menu > a, .profile-menu > button { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 18px; color: var(--text); background: none; border: none; border-top: 1px solid var(--border); font: inherit; text-align: left; cursor: pointer; }
.profile-menu > :first-child { border-top: none; }
.profile-menu > a:hover, .profile-menu > button:hover { background: var(--bg); text-decoration: none; }
.profile-menu > * > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; }
.profile-menu-icon { font-size: 1.3rem; }
.profile-menu-arrow { color: var(--muted); font-size: 1.4rem; }
.profile-logout .btn { background: var(--surface); }

/* Boutons de création flottants au-dessus de la barre du bas (téléphone) */
@media (max-width: 640px) {
  .fab-actions {
    position: fixed; right: 16px; bottom: calc(76px + env(safe-area-inset-bottom)); z-index: 40;
    flex-direction: column; align-items: flex-end; gap: 10px;
  }
  .actions.fab-actions .btn {
    flex: none; border-radius: 999px; padding: 12px 20px; font-weight: 600;
    box-shadow: 0 4px 14px rgba(16, 24, 40, 0.22);
  }
  .fab-actions .btn:not(.btn-primary) { background: var(--surface); }
  .has-nav .container:has(.fab-actions) { padding-bottom: calc(200px + env(safe-area-inset-bottom)); }
}

/* Administration */
.stat-link { color: var(--text); }
.stat-link:hover { border-color: var(--primary); text-decoration: none; }
.filter-tabs { display: flex; gap: 8px; overflow-x: auto; margin-bottom: 16px; padding-bottom: 2px; }
.filter-tabs a { white-space: nowrap; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font-size: 0.9rem; }
.filter-tabs a.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.filter-tabs a:hover { text-decoration: none; }
.member-list { padding: 0; overflow: hidden; }
.member-list > p { padding: 20px; margin: 0; }
.member-row { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-top: 1px solid var(--border); color: var(--text); }
.member-row:first-child { border-top: none; }
.member-row:hover { background: var(--bg); text-decoration: none; }
.member-avatar { width: 42px; height: 42px; font-size: 1.1rem; }
.member-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.member-main > span { overflow-wrap: anywhere; }
.member-state { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; text-align: right; }
.member-essai { background: var(--info-bg); color: var(--primary); }
.member-actif { background: var(--success-bg); color: var(--success-text); }
.member-expire { background: var(--error-bg); color: var(--error-text); }
.narrow + .narrow { margin-top: 16px; }
.admin-licence { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.admin-licence label { flex: 1 1 200px; }
.danger-zone { border-color: var(--danger); }
@media (max-width: 640px) {
  .member-row { flex-wrap: wrap; padding: 14px; }
  .member-state { flex-direction: row; align-items: center; width: 100%; padding-left: 56px; text-align: left; }
}
