/* Gestion Verde member list, scoped to preserve other screens. */
.workspace:has(#customers-view:not(.hidden)) { width: 100%; max-width: 1380px; box-sizing: border-box; padding: 18px 32px 40px; }
#customers-view { font-family: Arial, Helvetica, sans-serif; color: #3c8687; }
#customers-view .members-management-shell { display: grid; gap: 12px; width: 100%; max-width: none; }
#customers-view .members-page-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin: 0; }
#customers-view .members-page-header h1 { font: 24px Arial, sans-serif; color: #3c8687; margin: 0; }
#customers-view .members-page-header p { color: #426f70; font-size: 13px; margin: 4px 0 0; }
#customers-view .members-page-actions { display: flex; gap: 10px; }
#customers-view .members-page-actions button { min-height: 42px; padding: 9px 18px; border: 1px solid #3c8687; border-radius: 3px; box-shadow: none; font: 15px Arial, sans-serif; }
#customers-view .member-info-access { background: #3c8687; color: #fff; }
#customers-view .new-member-access { background: #88c426; color: #213f19; border-color: #74a92a; }
#customers-view .member-filter-panel { margin: 0; padding: 16px; background: #d3f19a; border: 1px solid #3c8687; border-radius: 0; box-shadow: none; }
#customers-view .member-filter-row { display: flex; align-items: end; flex-wrap: wrap; gap: 12px; }
#customers-view .member-universal-search { display: flex; align-items: center; flex: 1 1 440px; gap: 12px; font-size: 16px; color: #3c8687; }
#customers-view .member-filter-panel input, #customers-view .member-filter-panel select { box-sizing: border-box; min-width: 0; height: 34px; min-height: 34px; border: 1px solid #92b899; border-radius: 3px; background: #fff; color: #325f60; padding: 5px 8px; font: 14px Arial, sans-serif; box-shadow: none; }
#customers-view .member-universal-search input { width: 100%; }
#customers-view .member-filter-row > button { min-height: 34px; padding: 5px 22px; border: 0; border-radius: 3px; background: #3c8687; color: white; box-shadow: none; font-size: 15px; }
#customers-view .member-advanced-filters { position: relative; }
#customers-view .member-advanced-filters summary { padding: 7px 12px; border: 1px solid #3c8687; border-radius: 3px; background: #ecffe1; color: #3c8687; font-size: 14px; }
#customers-view .member-filter-options { z-index: 5; background: #ecffe1; border: 1px solid #3c8687; border-radius: 3px; box-shadow: 0 6px 16px #20433b20; }
#customers-view .member-list-legend { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 8px 18px; padding: 10px 14px; margin: 0; background: #ecffe1; border: 1px solid #7bae9b; }
#customers-view .member-list-legend span, #customers-view .member-list-legend span.active { display: inline-flex; align-items: center; gap: 6px; min-height: 24px; padding: 0; border: 0; border-radius: 0; background: transparent; color: #3c6868; box-shadow: none; font-size: 13px; }
#customers-view .member-list-legend span::before { content: ''; width: 12px; height: 12px; border-radius: 50%; background: #619c30; border: 1px solid #477725; }
#customers-view .member-list-legend span:nth-child(2)::before { background: #e6c639; border-color: #ac8f22; }
#customers-view .member-list-legend span:nth-child(3)::before { background: #db8d39; border-color: #a46223; }
#customers-view .member-list-legend span:nth-child(4)::before { background: #c65248; border-color: #96392f; }
#customers-view .member-list-legend span:nth-child(5)::before { background: #343434; border-color: #111; }
#customers-view .member-list-legend span:nth-child(6)::before { background: transparent; border: 1px solid #3c8687; border-radius: 2px; width: 16px; }
#customers-view .member-list-legend b { font-weight: 400; color: inherit; }
#customers-view .member-list-table-wrap { overflow-x: auto; border: 1px solid #3c8687; border-radius: 0; box-shadow: none; background: #ecffe1; }
#customers-view .member-management-table { display: table; width: 100%; min-width: 920px; table-layout: fixed; border-collapse: collapse; color: #3c8687; }
#customers-view .member-management-table thead { display: table-header-group; }
#customers-view .member-management-table tr { display: table-row; box-shadow: none; border: 0; }
#customers-view .member-management-table th { display: table-cell; padding: 10px 8px; background: #3c8687; color: #fff; text-transform: none; letter-spacing: 0; font: 14px Arial, sans-serif; border: 0; text-align: left; }
#customers-view .member-management-table th:nth-child(1) { width: 92px; }
#customers-view .member-management-table th:nth-child(2) { width: 102px; text-align: center; }
#customers-view .member-management-table th:nth-child(3) { width: auto; }
#customers-view .member-management-table th:nth-child(4) { width: 152px; }
#customers-view .member-management-table th:nth-child(5) { width: 158px; text-align: center; }
#customers-view .member-management-table th:nth-child(6) { width: 100px; }
#customers-view .member-management-table th:nth-child(7) { width: 54px; }
#customers-view .member-management-table th:nth-child(8) { width: 34px; }
#customers-view .member-management-table td { display: table-cell; padding: 10px 8px; border: 0; border-top: 1px solid #88b59b; vertical-align: middle; font-size: 15px; background: #ecffe1; color: #326f70; box-shadow: none; }
#customers-view .member-management-table tr:nth-child(even) td { background: #d3f19a; }
#customers-view .member-management-table tr:hover td { background: #c2e6b7; }
#customers-view .member-management-table td::before { display: none; }
#customers-view .member-list-photo .avatar { display: flex; width: 80px; height: 64px; min-width: 80px; border-radius: 4px; border: 0; background: #acd9af; color: #326f70; font-size: 24px; }
#customers-view .member-list-photo .avatar img { object-fit: cover; }
#customers-view .member-list-number { text-align: center; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
#customers-view .member-list-name strong { display: block; font-size: 16px; font-weight: 400; text-transform: uppercase; overflow-wrap: anywhere; }
#customers-view .member-list-date-content { display: grid; gap: 5px; }
#customers-view .date-line { display: grid; grid-template-columns: 1fr; gap: 0; }
#customers-view .date-line small { font-size: 10px; color: #4c7470; }
#customers-view .date-line strong { font-size: 13px; font-weight: 400; color: #326f70; }
#customers-view .date-line.attention strong { color: #ad3127; }
#customers-view .member-list-wallet { text-align: center; font-variant-numeric: tabular-nums; white-space: nowrap; }
#customers-view .member-list-wallet img { display: inline-block; width: 25px; height: 25px; object-fit: contain; vertical-align: middle; margin-right: 5px; }
#customers-view .member-list-wallet strong { font-size: 16px; color: #326f70; font-weight: 400; }
#customers-view .member-list-status-label { display: inline-flex; align-items: center; gap: 6px; padding: 0; background: transparent; border: 0; color: #325c4a; font-size: 12px; white-space: normal; }
#customers-view .member-list-status-label::before { content: ''; flex: 0 0 14px; height: 14px; border-radius: 50%; background: #76b431; box-shadow: inset 0 0 0 1px #0002; }
#customers-view .member-list-status-label.blocked::before, #customers-view .member-list-status-label.expired::before { background: #ce5447; }
#customers-view .member-list-status-label.banned::before { background: #343434; }
#customers-view .member-list-status-label.empty::before { background: #e3bd38; }
#customers-view .member-list-warning { border: 1px solid #b79034; border-radius: 3px; background: #fff0b0; color: #715520; min-width: 36px; min-height: 32px; padding: 3px; font-size: 12px; }
#customers-view .member-row-chevron { display: inline; background: none; border: 0; color: #3c8687; font-size: 28px; }
#customers-view :is(button, input, select, summary, .customer-row):focus-visible { outline: 3px solid #215f60; outline-offset: 2px; }
@media (max-width: 760px) {
 .workspace:has(#customers-view:not(.hidden)) { padding: 12px; }
 #customers-view .members-page-actions { width: 100%; }
 #customers-view .member-universal-search { flex-basis: 100%; display: grid; gap: 6px; }
 #customers-view .member-filter-options { position: static; width: 100%; }
}

#customers-view .member-wallet-amount { display: inline-flex; flex-direction: row; align-items: center; justify-content: center; gap: 7px; white-space: nowrap; }
#customers-view .member-wallet-amount img { display: block; flex: 0 0 25px; margin: 0; }
#customers-view .member-wallet-amount strong { display: inline; margin: 0; }

/* Shared warning asset; text and accessible names carry the warning meaning. */
img.warning-icon { display: inline-block; width: 20px; height: 20px; object-fit: contain; vertical-align: middle; flex-shrink: 0; }
#customer-detail .member-alert > img.warning-icon { width: 24px; height: 24px; }
#customers-view .member-list-warning { display: inline-flex; align-items: center; justify-content: center; gap: 4px; }
#customers-view .member-list-warning img.warning-icon { width: 25px; height: 25px; }
#customer-detail .document-action.warn::before { content: ""; display: inline-block; width: 25px; height: 25px; border: 0; border-radius: 0; background: url('img/warning.png') center / contain no-repeat; }
.member-load-more { display: flex; justify-content: center; padding: 18px 0; }
.members-loading { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 160px; color: #44576d; }
.members-loading-spinner { width: 24px; height: 24px; border: 3px solid #dbe4eb; border-top-color: #44576d; border-radius: 50%; animation: members-loading-spin 0.8s linear infinite; }
#customers-results.is-loading .member-list-table-wrap,
#customers-results.is-loading .member-load-more { display: none; }
@keyframes members-loading-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .members-loading-spinner { animation: none; } }
