/* =========================================================
   EVIS — dashboard.css (clean, no duplicates)
   Desktop: sidebar fixed
   Mobile: sidebar drawer + overlay
   ========================================================= */

/* -------------------------
   Base / layout
   ------------------------- */
:root {
    --g-text: #1f1f1f;
    --g-muted: #5f6368;

    --g-bg: #f6f8fc;
    /* canvas Google */
    --g-surface: #ffffff;
    /* cards */
    --g-border: rgba(60, 64, 67, .12);

    --g-blue: #1a73e8;
    --g-blue-soft: rgba(26, 115, 232, .10);

    --g-radius: 16px;
    --g-radius-sm: 12px;

    --g-shadow: 0 1px 2px rgba(60, 64, 67, .12), 0 2px 6px rgba(60, 64, 67, .08);
    --g-shadow-strong: 0 10px 30px rgba(60, 64, 67, .18);
}

/* =========================================================
   EVIS — TYPOGRAPHY SYSTEM
   Inter everywhere / SaaS premium / Apple-like
   ========================================================= */

:root {
    --g-text: #1f2937;
    --g-text-strong: #111827;
    --g-muted: rgba(31, 41, 55, 0.58);
    --g-muted-2: rgba(31, 41, 55, 0.42);

    --g-bg: #f6f8fc;
    --g-surface: #ffffff;
    --g-border: rgba(60, 64, 67, .12);

    --g-blue: #1a73e8;
    --g-blue-soft: rgba(26, 115, 232, .10);

    --g-radius: 16px;
    --g-radius-sm: 12px;

    --g-shadow: 0 1px 2px rgba(60, 64, 67, .12), 0 2px 6px rgba(60, 64, 67, .08);
    --g-shadow-strong: 0 10px 30px rgba(60, 64, 67, .18);
}

html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body,
button,
input,
select,
textarea,
a,
div,
span,
p,
h1,
h2,
h3,
h4,
h5,
h6,
label {
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.is-app {
    margin: 0;
    color: var(--g-text);
    background: var(--g-bg);
}

/* =========================
   Global title hierarchy
   ========================= */

h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0;
    color: var(--g-text-strong);
    letter-spacing: -0.03em;
}

.pageTitle,
.communityTitle,
.memberName,
.modalTitle,
.choiceTitle,
.brandName,
.gm-title {
    color: var(--g-text-strong);
    letter-spacing: -0.03em;
}

.muted,
.brandSub,
.userRole,
.communitySub,
.communityMemberMeta,
.choiceItemText,
.gm-subtitle {
    color: var(--g-muted);
}

/* =========================
   Sidebar brand text
   ========================= */

.brandName {
    font-size: 24px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: -0.04em;
    color: var(--g-text-strong);
}

.brandSub {
    margin-top: 3px;
    font-size: 15px;
    line-height: 1.15;
    font-weight: 300;
    letter-spacing: -0.02em;
    color: var(--g-muted);
}

/* =========================
   Sidebar nav text
   ========================= */

.sideLabel {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--g-muted-2);
    padding: 10px 8px 6px;
}

.sideItem {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 10px 12px;
    border-radius: 999px;
    text-decoration: none;
    color: var(--g-text);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: -0.01em;
    opacity: 1;
}

.sideItem:hover {
    background: rgba(60, 64, 67, .06);
}

.sideItem.is-active {
    background: var(--g-blue-soft);
    font-weight: 700;
}

.sideItem.is-active .material-symbols-outlined {
    color: var(--g-blue);
}

/* =========================
   Topbar / utility text
   ========================= */

.pageTitle {
    font-size: 20px;
    line-height: 1.1;
    font-weight: 700;
}

.userName {
    font-size: 13px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--g-text-strong);
}

.userRole {
    font-size: 12px;
    line-height: 1.3;
    font-weight: 500;
}

/* =========================
   Inputs / buttons
   ========================= */

button,
input,
select,
textarea {
    font-family: inherit;
}

.searchInput,
.communitySearchInput,
.authInput,
.gm-input {
    font-size: 14px;
    line-height: 1.4;
    font-weight: 500;
    letter-spacing: -0.01em;
    color: var(--g-text);
}

.searchInput::placeholder,
.communitySearchInput::placeholder,
.authInput::placeholder,
.gm-input::placeholder,
textarea::placeholder {
    color: rgba(31, 41, 55, 0.34);
}

.tbBtn,
.logoutBtn,
.pagerBtn,
.pagerNum,
.communityAddBtn,
.choicePrimaryBtn,
.gm-btn,
.gm-btn-primary {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

/* =========================
   Community hero
   ========================= */

.communityEyebrow {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--g-muted-2);
}

.communityTitle {
    margin: 0;
    font-size: 42px;
    line-height: 1.02;
    font-weight: 700;
    letter-spacing: -0.05em;
    color: var(--g-text-strong);
}

.communitySub {
    font-size: 16px;
    line-height: 1.5;
    font-weight: 400;
    letter-spacing: -0.01em;
    color: var(--g-muted);
}

/* =========================
   Community table
   ========================= */

.communityHeadCell {
    font-size: 11px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--g-muted-2);
}

.communityMemberName {
    font-size: 15px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--g-text-strong);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.communityMemberMeta {
    margin-top: 3px;
    font-size: 12px;
    line-height: 1.35;
    font-weight: 500;
}

.communityGender,
.communityPill {
    font-size: 13px;
    line-height: 1;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.communityEmptyTitle {
    font-size: 18px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--g-text-strong);
}

.communityEmptyText {
    font-size: 14px;
    line-height: 1.6;
    font-weight: 400;
    color: var(--g-muted);
}

/* =========================
   Pager
   ========================= */

.communityPagerInfo {
    font-size: 13px;
    line-height: 1.4;
    font-weight: 500;
    color: var(--g-muted);
}

.communityPagerBtn,
.communityPagerNum,
.pagerBtn,
.pagerNum {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

/* =========================
   Modals
   ========================= */

.modalTitle,
.choiceTitle,
.gm-title {
    font-size: 18px;
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--g-text-strong);
}

.choiceItemTitle {
    font-size: 15px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--g-text-strong);
}

.choiceItemText,
.choiceText,
.gm-subtitle,
.gm-help,
.authHelp {
    font-size: 13px;
    line-height: 1.6;
    font-weight: 400;
    color: var(--g-muted);
}

.authLabel,
.gm-label,
.modalSectionTitle,
.gm-section-title {
    font-size: 12px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: .04em;
    color: var(--g-muted);
}

/* =========================
   Mobile typography
   ========================= */

@media (max-width: 900px) {
    .communityTitle {
        font-size: 32px;
        letter-spacing: -0.04em;
    }

    .pageTitle {
        font-size: 18px;
    }

    .brandName {
        font-size: 22px;
    }

    .brandSub {
        font-size: 14px;
    }

    .communityMemberName {
        font-size: 14px;
    }
}

body.is-app {
    margin: 0;
}

.dash {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 16px;
    padding: 12px;
    background: var(--g-bg);
    box-sizing: border-box;
}

/* -------------------------
   Sidebar
   ------------------------- */

.sidebar {
    background: var(--g-surface);
    border: 1px solid var(--g-border);
    border-radius: var(--g-radius);
    padding: 14px;
    display: flex;
    flex-direction: column;
    box-shadow: var(--g-shadow);
}

.sidebarTop {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 8px 8px 14px 8px;
}

.brandMark {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0, 0, 0, .08);
    font-weight: 700;
}

.brandName {
    font-size: 22px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #1f2937;
}

.brandSub {
    margin-top: 4px;
    font-size: 14px;
    line-height: 1.2;
    font-weight: 400;
    letter-spacing: -0.01em;
    color: rgba(31, 41, 55, 0.55);
}

.envBadge {
    margin-top: 6px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 8px;
    border-radius: 999px;
    border: 1px solid var(--env-accent-border);
    background: var(--env-accent-soft);
    color: var(--env-accent-text);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .03em;
}

.envIcon {
    font-size: 14px !important;
    line-height: 1;
}

.sideSection {
    margin-top: 10px;
}

.sideLabel {
    font-size: 12px;
    opacity: .55;
    padding: 10px 8px 6px;
}

.sideItem {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 10px 12px;
    border-radius: 999px;
    /* style Google */
    text-decoration: none;
    color: var(--g-text);
    opacity: 1;
}

.sideItem:hover {
    background: rgba(60, 64, 67, .06);
}

.sideItem.is-active {
    background: var(--g-blue-soft);
    font-weight: 800;
}

.sideItem.is-active .material-symbols-outlined {
    color: var(--g-blue);
}

.ico {
    width: 20px;
    text-align: center;
}

.sideFooter {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid rgba(0, 0, 0, .08);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.userMini {
    display: flex;
    gap: 10px;
    align-items: center;
}

.avatar {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, .08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.userName {
    font-weight: 600;
    font-size: 13px;
}

.userRole {
    font-size: 12px;
    opacity: .6;
}

.logoutBtn {
    display: inline-flex;
    justify-content: center;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, .08);
    text-decoration: none;
    color: inherit;
}

.logoutBtn:hover {
    background: rgba(0, 0, 0, .04);
}

/* -------------------------
   Main
   ------------------------- */

.main {
    background: var(--g-surface);
    border: 1px solid var(--g-border);
    border-radius: var(--g-radius);
    box-shadow: var(--g-shadow);
    padding: 14px;
    height: calc(100vh - 24px);
    overflow: auto;
}

/* -------------------------
   Topbar
   ------------------------- */

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid var(--g-border);
    border-radius: var(--g-radius);
    background: var(--g-surface);
}

.pageTitle {
    font-size: 18px;
    font-weight: 700;
}

.topbarRight {
    display: flex;
    gap: 8px;
    align-items: center;
}

.tbBtn {
    padding: 8px 12px;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, .10);
    background: #fff;
    cursor: pointer;
}

.tbBtn:hover {
    background: rgba(0, 0, 0, .04);
}

.tbBtnPrimary {
    width: 38px;
    padding: 8px 0;
    font-weight: 800;
}

/* Hamburger button (hidden desktop) */
.menuBtn {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, .10);
    background: #fff;
    cursor: pointer;
    font-size: 18px;
    font-weight: 900;
    display: none;
    align-items: center;
    justify-content: center;
}

.menuBtn:hover {
    background: rgba(0, 0, 0, .04);
}

.content {
    padding: 14px 2px 2px;
}

/* -------------------------
   Cards / helpers
   ------------------------- */

.card {
    border: 1px solid rgba(0, 0, 0, .08);
    border-radius: 14px;
    padding: 14px;
}

.muted {
    opacity: .6;
}

.crumbs {
    display: flex;
    gap: 8px;
    align-items: center;
}

.crumbDot {
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* -------------------------
   Table (community)
   ------------------------- */

.tableWrap {
    border: 1px solid rgba(0, 0, 0, .08);
    border-radius: 14px;
    overflow: hidden;
}

.tableHeader {
    padding: 12px 14px;
    border-bottom: 1px solid rgba(0, 0, 0, .08);
    background: rgba(0, 0, 0, .02);
}

.table {
    width: 100%;
}

.tr {
    display: grid;
    grid-template-columns: 44px 220px 160px 160px 170px 120px;
    align-items: center;
    padding: 10px 12px;
    border-top: 1px solid rgba(0, 0, 0, .06);
}

.tr.th {
    border-top: none;
    font-size: 12px;
    opacity: .7;
    background: rgba(0, 0, 0, .02);
    font-weight: 600;
}

.td {
    padding: 2px 6px;
}

.td.chk {
    display: flex;
    justify-content: center;
}

.td.name {
    display: flex;
    gap: 10px;
    align-items: center;
}

.logo {
    width: 22px;
    height: 22px;
    border-radius: 7px;
    border: 1px solid rgba(0, 0, 0, .10);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    opacity: .9;
}

.nameTxt {
    font-weight: 600;
}

.pill {
    display: inline-flex;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, .10);
    font-size: 12px;
    opacity: .9;
}

.pill--muted {
    opacity: .45;
}

.rowLink {
    text-decoration: none;
    color: inherit;
}

.rowHover:hover {
    background: rgba(60, 91, 253, .06);
    cursor: pointer;
}

/* -------------------------
   Header row + search
   ------------------------- */

.headerRow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.headerActions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.searchBox {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid var(--g-border);
    border-radius: 999px;
    background: var(--g-surface);
    min-width: 300px;
    box-shadow: 0 1px 2px rgba(60, 64, 67, .08);
}

.searchBox:focus-within {
    border-color: var(--g-blue);
    box-shadow: 0 0 0 4px rgba(26, 115, 232, .14);
}

.searchIcon {
    color: var(--g-muted);
    font-size: 20px;
}

.searchInput {
    border: none;
    outline: none;
    width: 100%;
    font-size: 14px;
    font-weight: 600;
    color: var(--g-text);
}

.searchClear {
    text-decoration: none;
    font-weight: 800;
    opacity: .5;
    padding: 0 6px;
}

.searchClear:hover {
    opacity: .8;
}

/* Add button */
.addBtn {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    border: 1px solid rgba(0, 0, 0, .10);
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.addBtn:hover {
    background: rgba(60, 91, 253, .08);
    border-color: rgba(60, 91, 253, .25);
}

/* -------------------------
   Pager
   ------------------------- */

.pager {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 12px;
    padding: 10px 12px;
    border: 1px solid rgba(0, 0, 0, .08);
    border-radius: 14px;
    background: #fff;
}

.pagerRight {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.pagerBtn {
    padding: 8px 12px;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, .10);
    background: #fff;
    text-decoration: none;
    color: inherit;
    font-weight: 600;
}

.pagerBtn:hover {
    background: rgba(0, 0, 0, .04);
}

.pagerBtn.is-disabled {
    opacity: .4;
    cursor: not-allowed;
}

.pagerNum {
    min-width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, .10);
    text-decoration: none;
    color: inherit;
    font-weight: 700;
    background: #fff;
}

.pagerNum:hover {
    background: rgba(0, 0, 0, .04);
}

.pagerNum.is-active {
    border-color: rgba(60, 91, 253, .35);
    background: rgba(60, 91, 253, .10);
}

/* -------------------------
   Modal (add member)
   ------------------------- */

.modalOverlay {
    position: fixed;
    inset: 0;
    background: rgba(16, 24, 40, .45);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
    z-index: 9999;
}

.modalOverlay.is-open {
    display: flex;
}

.modalCard {
    width: min(720px, 100%);
    background: #fff;
    border-radius: 18px;
    border: 1px solid rgba(0, 0, 0, .10);
    padding: 14px;
}

.modalTop {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0, 0, 0, .08);
}

.modalTitle {
    font-weight: 800;
    font-size: 16px;
}

.modalClose {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, .10);
    background: #fff;
    cursor: pointer;
    font-size: 18px;
}

.modalForm {
    padding-top: 12px;
}

.grid2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}

.grid3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 12px;
}

.modalBottom {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding-top: 8px;
}

.formError {
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid rgba(255, 0, 0, .25);
    background: rgba(255, 0, 0, .06);
    color: #7a0910;
    font-weight: 700;
}

/* -------------------------
   Tooltip (buttons)
   ------------------------- */

.tbBtn[data-tooltip] {
    position: relative;
}

.tbBtn[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: -38px;
    left: 50%;
    transform: translateX(-50%);
    background: #101828;
    color: #fff;
    font-size: 12px;
    padding: 6px 10px;
    border-radius: 8px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity .15s ease;
    z-index: 1000;
}

.tbBtn[data-tooltip]::before {
    content: "";
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: transparent transparent #101828 transparent;
    opacity: 0;
    transition: opacity .15s ease;
}

.tbBtn[data-tooltip]:hover::after,
.tbBtn[data-tooltip]:hover::before {
    opacity: 1;
}

/* =========================================================
   MOBILE
   Sidebar => drawer + overlay
   Table => stacked
   ========================================================= */

.sidebarOverlay {
    display: none;
}

@media (max-width:900px) {

    .dash {
        grid-template-columns: 1fr;
        height: 100vh;
    }

    /* show hamburger */
    .menuBtn {
        display: inline-flex;
    }

    /* sidebar drawer */
    .sidebar {
        position: fixed;
        top: 12px;
        left: 12px;
        bottom: 12px;
        width: min(320px, calc(100vw - 24px));
        z-index: 2000;

        transform: translateX(-110%);
        transition: transform .25s ease;

        box-shadow: 0 30px 90px rgba(0, 0, 0, .25);
    }

    .sidebar.is-open {
        transform: translateX(0);
    }

    .sidebarOverlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, .35);
        z-index: 1500;
        display: none;
    }

    .sidebarOverlay.is-open {
        display: block;
    }

    .main {
        height: 100vh;
        overflow: auto;
    }

    /* Header/search: full width */
    .searchBox {
        min-width: 0;
        width: 100%;
    }

    .headerActions {
        width: 100%;
    }

    /* Table => compact columns */
    .tr {
        border-top: 1px solid rgba(60, 64, 67, .08);
    }


    /* hide less important columns on mobile (if you want) */
    .tr .td:nth-child(4),
    .tr .td:nth-child(5),
    .tr .td:nth-child(6) {
        display: none;
    }

    .tr.th .td:nth-child(4),
    .tr.th .td:nth-child(5),
    .tr.th .td:nth-child(6) {
        display: none;
    }

    .tr.th {
        background: transparent;
        border-top: none;
        font-size: 12px;
        color: var(--g-muted);
        font-weight: 800;
        opacity: 1;
    }

    .rowHover:hover {
        background: rgba(60, 64, 67, .06);
    }

    /* Modal form grid => 1 col */
    .grid2 {
        grid-template-columns: 1fr;
    }
}

/* ===========================
   Google-like Member Modal
   =========================== */

:root {
    --gm-blue: #1a73e8;
    --gm-blue2: #0b57d0;
    --gm-text: #111827;
    --gm-muted: #6b7280;
    --gm-border: rgba(0, 0, 0, .10);
    --gm-border2: rgba(0, 0, 0, .08);
    --gm-bg: #fff;
    --gm-soft: #f3f4f6;
    --gm-shadow: 0 22px 70px rgba(0, 0, 0, .22);
    --gm-radius: 20px;
    --gm-pill: 999px;
}

/* overlay */
.gm-overlay {
    position: fixed;
    inset: 0;
    background: rgba(17, 24, 39, .38);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
    z-index: 9999;
}

.gm-overlay.is-open {
    display: flex;
}

/* card */
.gm-modal {
    width: min(920px, 100%);
    background: var(--gm-bg);
    border: 1px solid var(--gm-border);
    border-radius: var(--gm-radius);
    box-shadow: var(--gm-shadow);
    overflow: hidden;
}

/* header */
.gm-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 18px 14px 18px;
    border-bottom: 1px solid var(--gm-border2);
}

.gm-head-left {
    min-width: 0;
}

.gm-title {
    font-size: 18px;
    font-weight: 900;
    color: var(--gm-text);
    letter-spacing: -0.2px;
}

.gm-subtitle {
    margin-top: 4px;
    font-size: 13px;
    color: var(--gm-muted);
}

.gm-close {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: 1px solid var(--gm-border);
    background: #fff;
    display: grid;
    place-items: center;
    cursor: pointer;
}

.gm-close:hover {
    background: rgba(0, 0, 0, .05);
}

/* alert */
.gm-alert {
    margin: 14px 18px 0 18px;
    padding: 12px 12px;
    border-radius: 16px;
    border: 1px solid rgba(220, 38, 38, .25);
    background: rgba(220, 38, 38, .06);
    color: #7a0910;
    font-weight: 700;
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.gm-alert .material-symbols-outlined {
    color: #b42318 !important;
    font-size: 20px !important;
}

/* form layout */
.gm-form {
    padding: 16px 18px 18px 18px;
    /* ✅ 1rem+ de marge partout */
    display: grid;
    gap: 14px;
}

.gm-section {
    display: grid;
    gap: 12px;
}

.gm-section-title {
    font-size: 12px;
    font-weight: 900;
    color: var(--gm-muted);
    letter-spacing: .04em;
    text-transform: uppercase;
    margin-top: 2px;
}

.gm-divider {
    height: 1px;
    background: rgba(0, 0, 0, .06);
    margin: 4px 0;
}

.gm-grid {
    display: grid;
    gap: 12px;
}

.gm-grid-2 {
    grid-template-columns: 1fr 1fr;
}

.gm-grid-3 {
    grid-template-columns: 1fr 1fr 1fr;
}

.gm-field {
    display: grid;
    gap: 6px;
}

.gm-label {
    font-size: 12px;
    font-weight: 900;
    color: var(--gm-muted);
    margin-left: 2px;
}

.gm-req {
    color: #b42318;
    font-weight: 900;
}

.gm-input {
    border: 1px solid rgba(0, 0, 0, .12);
    border-radius: 16px;
    padding: 12px 14px;
    font-size: 14px;
    outline: none;
    background: #fff;
}

.gm-input:focus {
    border-color: var(--gm-blue);
    box-shadow: 0 0 0 5px rgba(26, 115, 232, .14);
}

.gm-help {
    font-size: 12px;
    color: var(--gm-muted);
    margin-left: 2px;
}

/* search input for city */
.gm-search {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(0, 0, 0, .12);
    border-radius: 16px;
    padding: 10px 12px;
    background: #fff;
}

.gm-search-ico {
    color: var(--gm-muted) !important;
    font-size: 20px !important;
}

.gm-search-inp {
    border: none;
    outline: none;
    width: 100%;
    font-size: 14px;
}

/* checkboxes */
.gm-check {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border: 1px solid rgba(0, 0, 0, .10);
    border-radius: 16px;
    background: rgba(0, 0, 0, .02);
    font-weight: 800;
    color: var(--gm-text);
}

.gm-check input {
    width: 18px;
    height: 18px;
}

/* footer buttons */
.gm-foot {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding-top: 4px;
}

.gm-btn {
    border: 1px solid rgba(0, 0, 0, .12);
    background: #fff;
    color: var(--gm-text);
    padding: 10px 14px;
    border-radius: 999px;
    font-weight: 900;
    cursor: pointer;
}

.gm-btn:hover {
    background: rgba(0, 0, 0, .04);
}

.gm-btn-primary {
    border-color: var(--gm-blue);
    background: var(--gm-blue);
    color: #fff;
}

.gm-btn-primary:hover {
    filter: brightness(.96);
}

/* =========================
   Mobile: bottom sheet
   ========================= */
@media (max-width: 900px) {
    .gm-overlay {
        align-items: flex-end;
        padding: 12px;
    }

    .gm-modal {
        width: 100%;
        border-radius: 22px;
        margin-bottom: 0;
    }

    .gm-form {
        padding: 14px 14px 16px 14px;
    }

    .gm-grid-2,
    .gm-grid-3 {
        grid-template-columns: 1fr;
    }

    .gm-foot {
        padding-bottom: calc(8px + env(safe-area-inset-bottom));
    }
}

/* =========================================================
   OVERRIDE — Add Member Modal Google-like
   Colle TOUT EN BAS du dashboard.css
   ========================================================= */

/* Overlay */
#addMemberModal.modalOverlay {
    background: rgba(17, 24, 39, .38) !important;
    padding: 18px !important;
}

/* Community table: keep desktop structure but allow smooth horizontal scroll on narrow viewports */
.peopleTable {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
}

.peopleTable .tr {
    grid-template-columns:
        44px minmax(220px, 2fr) minmax(110px, .8fr) minmax(160px, 1.1fr) minmax(140px, 1fr) minmax(150px, 1fr);
    min-width: 824px;
}

@media (max-width: 1024px) {
    body.is-app {
        overflow: auto;
    }

    .dash {
        grid-template-columns: 1fr;
        height: auto;
        min-height: 100vh;
    }

    .sidebar {
        padding: 10px;
    }

    .sideLabel {
        display: none;
    }

    .sideSection {
        display: flex;
        gap: 8px;
        flex-wrap: wrap;
        overflow: visible;
        margin-top: 8px;
    }

    .sideItem {
        white-space: nowrap;
        border: 1px solid rgba(0, 0, 0, .08);
    }

    .main {
        height: auto;
        min-height: 0;
    }

    .memberGrid {
        grid-template-columns: 1fr;
    }

    .tabs {
        flex-wrap: wrap;
        gap: 8px;
    }

    .tabBtn {
        max-width: 100%;
    }

    .timelineItem {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .tlDate {
        font-size: 11px;
        padding-top: 0;
    }

    /* Avoid horizontal scrollbar on small laptops in community list */
    .peopleTable {
        overflow-x: hidden;
    }

    .peopleTable .tr {
        min-width: 0;
        grid-template-columns: 36px minmax(0, 1fr) minmax(120px, auto) minmax(120px, auto);
        gap: 6px;
    }

    .peopleTable .tr .td:nth-child(3),
    .peopleTable .tr .td:nth-child(6) {
        display: none;
    }
}

@media (max-width: 768px) {
    .content {
        padding: 12px 0 0;
    }

    .headerActions {
        width: 100%;
        margin-left: 0;
    }

    .topbar {
        flex-wrap: wrap;
        gap: 10px;
        align-items: flex-start;
    }

    .topbarLeft,
    .topbarRight {
        width: 100%;
    }

    .topbarRight {
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .pageTitle {
        font-size: 16px;
        line-height: 1.3;
        overflow-wrap: anywhere;
    }

    .searchBox {
        min-width: 0;
        flex: 1 1 220px;
    }

    .pager {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .pagerRight {
        flex-wrap: wrap;
    }

    .grid2,
    .grid3 {
        grid-template-columns: 1fr;
    }

    .memberHeader {
        align-items: flex-start;
    }

    .memberName {
        font-size: 16px;
        line-height: 1.25;
        overflow-wrap: anywhere;
    }

    .memberSub,
    .fieldValue,
    .tlText {
        overflow-wrap: anywhere;
    }

    .fieldRow {
        min-width: 0;
    }

    .tabBtn {
        width: 100%;
        justify-content: flex-start;
    }

    /* Remove horizontal scrollbar on community list by collapsing columns on mobile */
    .peopleTable {
        overflow-x: hidden;
    }

    .peopleTable .tr {
        grid-template-columns: 36px minmax(0, 1fr) minmax(120px, auto);
    }

    .peopleTable .tr .td:nth-child(5) {
        display: none;
    }
}

@media (max-width: 640px) {
    .modalOverlay {
        padding: 10px;
    }

    .modalCard {
        max-height: calc(100vh - 20px);
        overflow: auto;
    }

    .crumbs {
        flex-wrap: wrap;
    }

    .addBtn {
        width: 38px;
        height: 38px;
    }
}

/* Card */
#addMemberModal .modalCard {
    width: min(920px, 100%) !important;
    border-radius: 20px !important;
    border: 1px solid rgba(0, 0, 0, .10) !important;
    box-shadow: 0 22px 70px rgba(0, 0, 0, .22) !important;
    overflow: hidden !important;
    padding: 0 !important;
    /* on gère les paddings par sections */
}

/* Header */
#addMemberModal .modalTop {
    padding: 18px 18px 14px 18px !important;
    border-bottom: 1px solid rgba(0, 0, 0, .08) !important;
    background: #fff !important;
}

#addMemberModal .modalTitle {
    font-size: 18px !important;
    font-weight: 900 !important;
    letter-spacing: -.2px !important;
}

#addMemberModal .modalClose {
    width: 42px !important;
    height: 42px !important;
    border-radius: 999px !important;
    border: 1px solid rgba(0, 0, 0, .10) !important;
    background: #fff !important;
    display: grid !important;
    place-items: center !important;
    cursor: pointer !important;
}

#addMemberModal .modalClose:hover {
    background: rgba(0, 0, 0, .05) !important;
}

/* ✅ IMPORTANT : l’espace autour du contenu */
#addMemberModal .modalForm {
    padding: 16px 18px 18px 18px !important;
    /* <-- 1rem+ gauche/droite */
}

/* Sections */
#addMemberModal .modalSectionTitle {
    font-size: 12px !important;
    font-weight: 900 !important;
    color: rgba(0, 0, 0, .55) !important;
    letter-spacing: .04em !important;
    text-transform: uppercase !important;
    margin: 2px 0 10px 2px !important;
}

/* Champs */
#addMemberModal .authLabel {
    font-size: 12px !important;
    font-weight: 900 !important;
    color: rgba(0, 0, 0, .60) !important;
    margin-left: 2px !important;
}

#addMemberModal .authInput {
    border: 1px solid rgba(0, 0, 0, .12) !important;
    border-radius: 16px !important;
    padding: 12px 14px !important;
    font-size: 14px !important;
    outline: none !important;
    background: #fff !important;
}

#addMemberModal .authInput:focus {
    border-color: #1a73e8 !important;
    box-shadow: 0 0 0 5px rgba(26, 115, 232, .14) !important;
}

/* Help text */
#addMemberModal .authHelp {
    font-size: 12px !important;
    color: rgba(0, 0, 0, .55) !important;
    margin: 6px 0 0 2px !important;
}

/* City picker : plus clean */
#addMemberModal .cityPicker {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    border: 1px solid rgba(0, 0, 0, .12) !important;
    border-radius: 16px !important;
    padding: 10px 12px !important;
    background: #fff !important;
    margin-bottom: 10px !important;
}

#addMemberModal .cityIcon {
    font-size: 20px !important;
    color: rgba(0, 0, 0, .55) !important;
}

#addMemberModal .citySearch {
    border: none !important;
    outline: none !important;
    width: 100% !important;
    font-size: 14px !important;
}

/* Check rows Google-like */
#addMemberModal .checkRow {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 12px 14px !important;
    border: 1px solid rgba(0, 0, 0, .10) !important;
    border-radius: 16px !important;
    background: rgba(0, 0, 0, .02) !important;
    font-weight: 800 !important;
}

/* Footer buttons */
#addMemberModal .modalBottom {
    margin-top: 14px !important;
    padding-top: 12px !important;
    border-top: 1px solid rgba(0, 0, 0, .08) !important;
    display: flex !important;
    justify-content: flex-end !important;
    gap: 10px !important;
}

#addMemberModal .tbBtn {
    border-radius: 999px !important;
    padding: 10px 14px !important;
    font-weight: 900 !important;
}

#addMemberModal .tbBtnPrimary {
    width: auto !important;
    padding: 10px 16px !important;
    background: #1a73e8 !important;
    border-color: #1a73e8 !important;
    color: #fff !important;
}

#addMemberModal .tbBtnPrimary:hover {
    filter: brightness(.96) !important;
}

/* Error */
#addMemberModal .formError {
    margin: 14px 18px 0 18px !important;
    border-radius: 16px !important;
}

/* =========================
   Mobile => bottom sheet avec marges
   ========================= */
@media (max-width: 900px) {
    #addMemberModal.modalOverlay {
        align-items: flex-end !important;
        padding: 12px !important;
    }

    #addMemberModal .modalCard {
        width: 100% !important;
        border-radius: 22px !important;
    }

    #addMemberModal .modalForm {
        padding: 14px 14px 16px 14px !important;
    }

    #addMemberModal .grid2,
    #addMemberModal .grid3 {
        grid-template-columns: 1fr !important;
    }

    #addMemberModal .modalBottom {
        padding-bottom: calc(10px + env(safe-area-inset-bottom)) !important;
    }
}

/* =========================================================
   Choice modal - mode d'inscription
   ========================================================= */

.modalCard--choice {
    width: min(680px, 100%);
    padding: 0;
    overflow: hidden;
    border-radius: 20px;
}

.modalTop--choice {
    padding: 22px 24px 14px 24px;
}

.choiceTabs {
    display: flex;
    align-items: center;
    gap: 22px;
    padding: 0 24px;
    border-bottom: 1px solid rgba(0, 0, 0, .08);
}

.choiceTab {
    appearance: none;
    border: none;
    background: transparent;
    padding: 14px 0 12px 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 14px;
    color: rgba(17, 24, 39, .75);
    border-bottom: 2px solid transparent;
    cursor: pointer;
}

.choiceTab .material-symbols-outlined {
    font-size: 18px !important;
    color: inherit !important;
}

.choiceTab.is-active {
    color: #ef4444;
    border-bottom-color: #ef4444;
}

.choicePanelWrap {
    padding: 22px 24px 24px 24px;
}

.choicePanel {
    display: block;
}

.choiceInfo {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 16px;
    align-items: flex-start;
}

.choiceBadge {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.choiceBadge .material-symbols-outlined {
    font-size: 24px !important;
}

.choiceBadge--sms {
    background: linear-gradient(135deg, #ffd36e, #ff7a7a);
    color: #fff;
}

.choiceBadge--manual {
    background: linear-gradient(135deg, #9ec5ff, #6ea8fe);
    color: #fff;
}

.choiceContent {
    min-width: 0;
}

.choiceText {
    font-size: 15px;
    line-height: 1.75;
    color: #374151;
}

.choiceActions {
    display: flex;
    justify-content: center;
    margin-top: 26px;
}

.choicePrimaryBtn {
    min-width: 220px;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 12px;
    background: #748775;
    color: #fff;
    font-weight: 800;
    font-size: 15px;
    padding: 14px 18px;
    transition: filter .15s ease, transform .15s ease;
}

.choicePrimaryBtn:hover {
    filter: brightness(.96);
    transform: translateY(-1px);
}

@media (max-width: 900px) {
    .modalCard--choice {
        width: 100%;
        border-radius: 22px;
    }

    .modalTop--choice {
        padding: 18px 18px 12px 18px;
    }

    .choiceTabs {
        padding: 0 18px;
        gap: 14px;
        overflow: auto;
    }

    .choicePanelWrap {
        padding: 18px;
    }

    .choiceInfo {
        grid-template-columns: 44px 1fr;
        gap: 12px;
    }

    .choiceBadge {
        width: 40px;
        height: 40px;
        border-radius: 12px;
    }

    .choiceText {
        font-size: 14px;
        line-height: 1.65;
    }

    .choicePrimaryBtn {
        width: 100%;
    }
}

/* =========================
   Choice modal
   ========================= */

.choiceOverlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, .28);
    display: none;
    /* important */
    align-items: center;
    justify-content: center;
    padding: 18px;
    z-index: 9999;
    backdrop-filter: blur(4px);
}

.choiceOverlay.is-open {
    display: flex;
}

.choiceModal {
    width: min(620px, 100%);
    background: rgba(255, 255, 255, .96);
    border: 1px solid rgba(0, 0, 0, .08);
    border-radius: 24px;
    box-shadow: 0 24px 80px rgba(15, 23, 42, .18);
    overflow: hidden;
}

.choiceHead {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 22px 16px 22px;
}

.choiceTitle {
    font-size: 17px;
    font-weight: 800;
    color: #111827;
}

.choiceClose {
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 999px;
    background: transparent;
    color: #374151;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.choiceClose:hover {
    background: rgba(0, 0, 0, .05);
}

.choiceList {
    display: grid;
    gap: 10px;
    padding: 0 18px 18px 18px;
}

.choiceItem {
    display: grid;
    grid-template-columns: 52px 1fr 24px;
    align-items: center;
    gap: 14px;
    padding: 16px;
    border-radius: 20px;
    text-decoration: none;
    color: inherit;
    border: 1px solid rgba(0, 0, 0, .08);
    background: #fff;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.choiceItem:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(15, 23, 42, .08);
    border-color: rgba(0, 0, 0, .12);
}

.choiceIconWrap {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.choiceIconWrap--soft {
    background: rgba(212, 175, 55, .14);
}

.choiceIconWrap--neutral {
    background: rgba(17, 24, 39, .06);
}

.choiceIcon {
    font-size: 24px !important;
    color: #b88a00 !important;
}

.choiceIconWrap--neutral .choiceIcon {
    color: #374151 !important;
}

.choiceTextWrap {
    min-width: 0;
}

.choiceItemTitle {
    font-size: 15px;
    font-weight: 700;
    color: #111827;
}

.choiceItemText {
    margin-top: 4px;
    font-size: 13px;
    line-height: 1.55;
    color: #6b7280;
}

.choiceChevron {
    font-size: 20px !important;
    color: #9ca3af !important;
}

@media (max-width: 900px) {
    .choiceOverlay {
        align-items: flex-end;
        padding: 12px;
    }

    .choiceModal {
        width: 100%;
        border-radius: 24px;
    }

    .choiceHead {
        padding: 20px 18px 14px 18px;
    }

    .choiceList {
        padding: 0 14px 14px 14px;
    }

    .choiceItem {
        grid-template-columns: 48px 1fr 20px;
        padding: 14px;
        border-radius: 18px;
    }

    .choiceIconWrap {
        width: 48px;
        height: 48px;
        border-radius: 14px;
    }
}

.communityPage {
    display: grid;
    gap: 18px;
}

.communityHero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.communityHeroLeft {
    display: grid;
    gap: 6px;
}

.communityEyebrow {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: rgba(17, 24, 39, .45);
}

.communityTitle {
    margin: 0;
    font-size: 30px;
    line-height: 1.02;
    font-weight: 800;
    letter-spacing: -.04em;
    color: #111827;
}

.communitySub {
    font-size: 14px;
    color: rgba(17, 24, 39, .58);
}

/* CONTAINER */
.communityHeroRight {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    /* 🔥 réduit l’espace */
    flex-wrap: nowrap;
}

/* BOUTON ROLES */
.communityRolesBtn {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    height: 40px;
    padding: 0 14px;

    border-radius: 12px;
    border: 1px solid rgba(15, 23, 42, 0.08);

    background: #fff;
    color: rgba(17, 24, 39, 0.7);

    font-size: 14px;
    font-weight: 600;

    cursor: pointer;
    transition: all 0.18s ease;
}

.communityRolesBtn:hover {
    background: rgba(15, 23, 42, 0.04);
    border-color: rgba(15, 23, 42, 0.14);
    color: #111827;
}

/* BOUTON PRINCIPAL */
.communityAddBtn {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    height: 40px;
    padding: 0 16px;

    border-radius: 12px;
    border: 1px solid #FFD2C5;

    background: #FF6A3D;
    color: #ffffff;

    font-size: 14px;
    font-weight: 700;
    letter-spacing: -0.01em;

    cursor: pointer;
    transition: all 0.18s ease;
}

/* 🔥 ICON BLANCHE */
.communityAddBtn .material-symbols-outlined {
    font-size: 18px;
    color: #ffffff;
}

/* 🔥 HOVER INVERSE */
.communityAddBtn:hover {
    background: #ffffff;
    color: #FF6A3D;
    border-color: #FF6A3D;

    transform: translateY(-1px);
}

/* 🔥 ICON DEVIENT ORANGE AU HOVER */
.communityAddBtn:hover .material-symbols-outlined {
    color: #FF6A3D;
}

.communityToolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.communitySearch {
    width: min(420px, 100%);
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 14px;
    border-radius: 18px;
    border: 1px solid rgba(15, 23, 42, .08);
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 8px 24px rgba(15, 23, 42, .04);
}

.communitySearch:focus-within {
    border-color: rgba(180, 140, 30, .45);
    box-shadow: 0 0 0 4px rgba(180, 140, 30, .10);
}

.communitySearchIcon {
    color: rgba(17, 24, 39, .42) !important;
    font-size: 20px !important;
}

.communitySearchInput {
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    font-size: 14px;
    color: #111827;
}

.communitySearchInput::placeholder {
    color: rgba(17, 24, 39, .35);
}

.communitySearchClear {
    text-decoration: none;
    color: rgba(17, 24, 39, .42);
    font-weight: 800;
}

.communityTableCard {
    overflow: hidden;
    border-radius: 22px;
    border: 1px solid rgba(15, 23, 42, 0.06);
    background: rgba(255, 255, 255, 0.98);
    box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.03),
        0 16px 40px rgba(15, 23, 42, 0.05);
}

.communityTableHead {
    display: grid;
    grid-template-columns: 52px minmax(260px, 1.6fr) 130px 150px 150px 150px;
    align-items: center;
    min-height: 52px;
    padding: 0 12px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.05);
    background: rgba(250, 250, 250, 0.92);
    backdrop-filter: blur(8px);
}

.communityHeadCell {
    padding: 0 14px;
    font-size: 11px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(17, 24, 39, 0.42);
}

.communityHeadCell--check {
    display: flex;
    justify-content: center;
}

.communityTableBody {
    display: grid;
    background: #fff;
}

.communityRow {
    display: grid;
    grid-template-columns: 52px minmax(260px, 1.6fr) 130px 150px 150px 150px;
    align-items: center;
    min-height: 76px;
    padding: 0 12px;
    text-decoration: none;
    color: inherit;
    border-top: 1px solid rgba(15, 23, 42, 0.045);
    transition: background 0.16s ease;
}

.communityRow:first-child {
    border-top: none;
}

.communityRow:hover {
    background: rgba(249, 250, 251, 0.96);
}

.communityCell {
    padding: 12px 14px;
    min-width: 0;
}

.communityCell--check {
    display: flex;
    justify-content: center;
}

.communityCell--city,
.communityCell--birth {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: -0.01em;
    color: rgba(17, 24, 39, 0.72);
}

.communityIdentity {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.communityAvatar {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.06);
    color: rgba(17, 24, 39, 0.72);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: -0.01em;
    flex-shrink: 0;
}

.communityIdentityText {
    min-width: 0;
}

.communityMemberName {
    font-size: 15px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #111827;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.communityMemberMeta {
    margin-top: 4px;
    font-size: 12px;
    line-height: 1.35;
    font-weight: 500;
    color: rgba(17, 24, 39, 0.48);
}

/* genre : style badge texte moderne */
.communityGender {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    border: none;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: -0.01em;
    width: fit-content;
}

.communityGender--male {
    background: rgba(59, 130, 246, 0.10);
    color: #2563eb;
}

.communityGender--female {
    background: rgba(236, 72, 153, 0.10);
    color: #db2777;
}

.communityGender--neutral {
    background: rgba(15, 23, 42, 0.05);
    color: rgba(17, 24, 39, 0.45);
}

.communityGenderText {
    display: inline-block;
}

/* rôle */
.communityPill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 0 11px;
    border-radius: 999px;
    border: 1px solid rgba(15, 23, 42, 0.07);
    background: rgba(248, 250, 252, 0.95);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: rgba(17, 24, 39, 0.70);
    width: fit-content;
}

.communityPill--muted {
    color: rgba(17, 24, 39, 0.38);
}

/* état vide */
.communityEmpty {
    display: grid;
    justify-items: center;
    gap: 10px;
    padding: 46px 22px;
    background: #fff;
}

.communityEmptyIcon {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.06);
    color: rgba(17, 24, 39, 0.55);
}

.communityEmptyTitle {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #111827;
}

.communityEmptyText {
    max-width: 420px;
    font-size: 14px;
    line-height: 1.6;
    color: rgba(17, 24, 39, 0.58);
    text-align: center;
}

/* pagination */
.communityPager {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    padding: 4px 2px 0;
}

.communityPagerInfo {
    font-size: 13px;
    font-weight: 500;
    color: rgba(17, 24, 39, 0.56);
}

.communityPagerActions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.communityPagerBtn,
.communityPagerNum {
    min-height: 36px;
    min-width: 36px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: #fff;
    color: #111827;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: -0.01em;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.communityPagerBtn:hover,
.communityPagerNum:hover {
    background: rgba(15, 23, 42, 0.04);
    border-color: rgba(15, 23, 42, 0.12);
}

.communityPagerNum.is-active {
    background: rgba(15, 23, 42, 0.06);
    border-color: rgba(15, 23, 42, 0.12);
    color: #111827;
}

.communityPagerBtn.is-disabled {
    opacity: 0.42;
    pointer-events: none;
}

.mobileOnly {
    display: none;
}

/* =========================
   Responsive
   ========================= */

@media (max-width: 900px) {
    .communityTitle {
        font-size: 26px;
    }

    .communityHero {
        align-items: flex-start;
    }

    .communityHeroRight {
        width: 100%;
    }

    .communityAddBtn {
        width: 100%;
        justify-content: center;
    }

    .communityToolbar {
        display: block;
    }

    .communitySearch {
        width: 100%;
    }

    .communityTableHead {
        grid-template-columns: 52px 1fr 110px;
    }

    .communityHeadCell--role,
    .communityHeadCell--city,
    .communityHeadCell--birth {
        display: none;
    }

    .communityRow {
        grid-template-columns: 52px 1fr 110px;
        min-height: 72px;
    }

    .communityCell--role,
    .communityCell--city,
    .communityCell--birth {
        display: none;
    }

    .communityGenderText {
        display: inline-block;
    }

    .mobileOnly {
        display: block;
    }
}

@media (max-width: 640px) {
    .communityTableCard {
        border-radius: 18px;
    }

    .communityTableHead {
        padding: 0 8px;
    }

    .communityRow {
        padding: 0 8px;
    }

    .communityCell {
        padding: 12px 10px;
    }

    .communityAvatar {
        width: 38px;
        height: 38px;
        border-radius: 12px;
    }

    .communityMemberName {
        font-size: 14px;
    }

    .communityPager {
        flex-direction: column;
        align-items: flex-start;
    }
}