/**
 * CrewCommerce Frontend Styles
 */

/* Team Account Portal */

.crewcommerce-portal {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.crewcommerce-portal h2 {
    border-bottom: 2px solid #0073aa;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

/* Approval Status Indicators */

.crewcommerce-approval-status {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
}

.crewcommerce-approval-status.pending {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.crewcommerce-approval-status.approved {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.crewcommerce-approval-status.rejected {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Order Cards */

.crewcommerce-order-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.crewcommerce-order-card h3 {
    margin-top: 0;
    color: #0073aa;
}

.crewcommerce-order-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 15px 0;
}

.crewcommerce-order-meta-item {
    display: flex;
    flex-direction: column;
}

.crewcommerce-order-meta-label {
    font-weight: bold;
    color: #666;
    font-size: 12px;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.crewcommerce-order-meta-value {
    font-size: 14px;
}

/* Approval Actions */

.crewcommerce-approval-actions {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.crewcommerce-approval-actions .button {
    margin-right: 10px;
}

.crewcommerce-approval-actions .button.approve {
    background-color: #28a745;
    border-color: #28a745;
    color: #fff;
}

.crewcommerce-approval-actions .button.approve:hover {
    background-color: #218838;
    border-color: #1e7e34;
}

.crewcommerce-approval-actions .button.reject {
    background-color: #dc3545;
    border-color: #dc3545;
    color: #fff;
}

.crewcommerce-approval-actions .button.reject:hover {
    background-color: #c82333;
    border-color: #bd2130;
}

/* Team Member List */

.crewcommerce-team-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.crewcommerce-team-member {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 15px;
}

.crewcommerce-team-member h4 {
    margin-top: 0;
    color: #0073aa;
}

.crewcommerce-team-member-role {
    display: inline-block;
    background: #f8f9fa;
    color: #495057;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 11px;
    text-transform: uppercase;
    font-weight: bold;
}

.crewcommerce-team-member-role.admin {
    background: #d4edda;
    color: #155724;
}

.crewcommerce-team-member-role.manager {
    background: #cce5ff;
    color: #004085;
}

/* Notifications */

.crewcommerce-notification {
    padding: 12px 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    border-left: 4px solid;
}

.crewcommerce-notification.success {
    background-color: #d4edda;
    border-color: #28a745;
    color: #155724;
}

.crewcommerce-notification.error {
    background-color: #f8d7da;
    border-color: #dc3545;
    color: #721c24;
}

.crewcommerce-notification.warning {
    background-color: #fff3cd;
    border-color: #ffc107;
    color: #856404;
}

.crewcommerce-notification.info {
    background-color: #cce5ff;
    border-color: #007bff;
    color: #004085;
}

/* Loading States */

.crewcommerce-loading {
    text-align: center;
    padding: 40px;
    color: #666;
}

.crewcommerce-loading::before {
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #0073aa;
    border-radius: 50%;
    animation: crewcommerce-spin 1s linear infinite;
    margin-right: 10px;
}

@keyframes crewcommerce-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */

@media (max-width: 768px) {
  .crewcommerce-portal {
        padding: 10px;
    }
  .crewcommerce-order-meta {
        grid-template-columns: 1fr;
    }
  .crewcommerce-team-list {
        grid-template-columns: 1fr;
    }
  .crewcommerce-approval-actions .button {
        display: block;
        width: 100%;
        margin-bottom: 10px;
        margin-right: 0;
    }
}

/* WooCommerce Integration */

.woocommerce .crewcommerce-approval-notice {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 20px;
}

.woocommerce .crewcommerce-approval-notice h3 {
    margin-top: 0;
    color: #856404;
}

/* Account Dashboard Integration */

.woocommerce-account .crewcommerce-section {
    margin-bottom: 30px;
}

.woocommerce-account .crewcommerce-section h3 {
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

/* Frontend Dashboard Styles */

.crewcommerce-frontend-dashboard {
    max-width: 1200px;
    margin: 0 auto;
}

.crewcommerce-dashboard-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #0073aa;
}

.crewcommerce-dashboard-header h2 {
    margin: 0 0 10px 0;
    color: #0073aa;
}

.user-role {
    margin: 0;
    color: #666;
    font-size: 14px;
}

.crewcommerce-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.crewcommerce-dashboard-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.crewcommerce-dashboard-card h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
    font-size: 18px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

/* Team Stats */

.team-stats {
    display: flex;
    gap: 30px;
    margin-bottom: 20px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 32px;
    font-weight: bold;
    color: #0073aa;
    line-height: 1;
}

.stat-item.pending .stat-number {
    color: #f57c00;
}

.stat-label {
    display: block;
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    margin-top: 5px;
}

.dashboard-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Recent Orders */

.recent-orders-list {
    margin-bottom: 15px;
}

.order-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.order-item:last-child {
    border-bottom: none;
}

.order-info strong {
    color: #0073aa;
}

.order-date {
    color: #666;
    font-size: 12px;
    margin-left: 10px;
}

.order-status {
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 3px;
    background: #f8f9fa;
    color: #495057;
}

.order-total {
    font-weight: bold;
    color: #333;
}

.view-all-link {
    color: #0073aa;
    text-decoration: none;
    font-size: 14px;
}

.view-all-link:hover {
    text-decoration: underline;
}

/* Team Members Preview */

.team-members-preview {
    margin-bottom: 15px;
}

.member-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.member-item:last-child {
    border-bottom: none;
}

.member-info strong {
    color: #333;
}

.member-role {
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 3px;
    text-transform: uppercase;
    font-weight: bold;
    margin-left: 10px;
}

.member-role.role-admin {
    background: #d4edda;
    color: #155724;
}

.member-role.role-manager {
    background: #cce5ff;
    color: #004085;
}

.member-role.role-requester {
    background: #f8f9fa;
    color: #495057;
}

.more-members {
    color: #666;
    font-style: italic;
    margin: 10px 0 0 0;
}

/* Team Management */

.crewcommerce-team-management {
    max-width: 1200px;
    margin: 0 auto;
}

.team-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #0073aa;
}

.team-header h2 {
    margin: 0;
    color: #0073aa;
}

.team-members-table {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow-x: auto;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Both tables have enough columns to overflow narrow viewports; scroll the
   table itself rather than letting it push the whole page wider. */

.crewcommerce-table {
    width: 100%;
    border-collapse: collapse;
}

.crewcommerce-table th,
.crewcommerce-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.crewcommerce-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #495057;
    text-transform: uppercase;
    font-size: 12px;
}

.crewcommerce-table tr:hover {
    background: #f8f9fa;
}

.role-select {
    min-width: 120px;
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 3px;
}

.current-user {
    color: #666;
    font-style: italic;
}

/* Modal Styles */

.crewcommerce-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: #fff;
    border-radius: 8px;
    padding: 0;
    min-width: 500px;
    max-width: 90%;
    max-height: 90%;
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #eee;
}

.modal-header h3 {
    margin: 0;
    color: #333;
}

/* Only the header's icon button: .modal-close doubles as the
   footer Cancel button's click target too (see the shared .modal-close
   handler in class-frontend-dashboard.php), and that button also carries
   .button for normal button styling. An unscoped rule here forced every
   .modal-close into a 30x30 icon box regardless, squashing "Cancel" down
   to that size with its text overflowing into the button next to it. */

.modal-header .modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-header .modal-close:hover {
    color: #333;
}

.modal-content form {
    padding: 25px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 12px;
}

.form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

/* Approvals */

.crewcommerce-approvals {
    max-width: 1200px;
    margin: 0 auto;
}

.crewcommerce-approvals h2 {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #0073aa;
    color: #0073aa;
}

.approvals-list {
    display: grid;
    gap: 25px;
}

.approval-card {
    display: flex;
    gap: 14px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.approval-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.approval-header h3 {
    margin: 0;
    color: #0073aa;
}

.order-date {
    color: #666;
    font-size: 14px;
}

.approval-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
}

.detail-row .label {
    font-weight: 600;
    color: #666;
    flex-shrink: 0;
}

.detail-row .value {
    color: #333;
    text-align: right;
    min-width: 0;
    overflow-wrap: break-word;
}

.order-items {
    margin-bottom: 25px;
}

.order-items h4 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 14px;
}

.order-items ul {
    margin: 0;
    padding-left: 20px;
    color: #666;
}

.order-items li {
    margin-bottom: 5px;
}

.approval-actions {
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.approval-notes {
    width: 100%;
    min-height: 80px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 15px;
    font-family: inherit;
    resize: vertical;
}

.action-buttons {
    display: flex;
    gap: 10px;
}

.approve-btn {
    background-color: #28a745;
    border-color: #28a745;
    color: #fff;
}

.approve-btn:hover {
    background-color: #218838;
    border-color: #1e7e34;
}

.reject-btn {
    background-color: #dc3545;
    border-color: #dc3545;
    color: #fff;
}

.reject-btn:hover {
    background-color: #c82333;
    border-color: #bd2130;
}

.no-approvals {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.no-approvals p {
    color: #666;
    font-size: 16px;
    margin-bottom: 20px;
}

/* Responsive Design for Frontend */

@media (max-width: 768px) {
  .crewcommerce-dashboard-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
  .team-stats {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
  .dashboard-actions {
        justify-content: center;
    }
  .team-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
  .crewcommerce-table {
        font-size: 14px;
    }
  .crewcommerce-table th,
    .crewcommerce-table td {
        padding: 10px 8px;
    }
  .modal-content {
        min-width: 90%;
        margin: 20px;
    }
  .approval-details {
        grid-template-columns: 1fr;
    }
  .action-buttons {
        flex-direction: column;
    }
  .action-buttons .button {
        width: 100%;
        text-align: center;
    }
}

/* WooCommerce Account Integration */

.woocommerce-account .crewcommerce-frontend-dashboard,
.woocommerce-account .crewcommerce-team-management,
.woocommerce-account .crewcommerce-approvals {
    margin-top: 0;
}

.woocommerce-account .crewcommerce-dashboard-header h2,
.woocommerce-account .team-header h2,
.woocommerce-account .crewcommerce-approvals h2 {
    font-size: 24px;
}

/* Company Admin Protection Styles */

.company-admin-badge {
    display: inline-block;
    background: #d4edda;
    color: #155724;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: bold;
    text-transform: uppercase;
    margin-left: 8px;
}

.role-display {
    font-weight: bold;
    color: #0073aa;
}

.role-note {
    display: block;
    color: #666;
    font-style: italic;
    margin-top: 2px;
}

.admin-protected {
    color: #666;
    font-style: italic;
}

.role-select[data-is-admin="true"] {
    border-color: #d4edda;
    background-color: #f8fff9;
}

/* Duplicate Company Prevention */

.crewcommerce-company-exists-notice {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
    padding: 10px;
    border-radius: 4px;
    margin: 10px 0;
}

/* Enhanced form validation */

.form-group.has-error input,
.form-group.has-error select,
.form-group.has-error textarea {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.form-group .error-message {
    color: #dc3545;
    font-size: 12px;
    margin-top: 5px;
    display: block;
}

/* Approval comment thread, on both the approver's Approvals page and
   the requester's My Requests page (class-frontend-dashboard.php). */

/* Per-member spend vs limit, shown under the "Set" limit control on
   Manage Team (class-frontend-dashboard.php team_management_content()). */

/* Fast Restock */

/* Approvals page: heading, bulk bar, waiting/unassigned cards */

.crewcommerce-approvals-heading { display: flex; align-items: baseline; gap: 10px; margin-bottom: 20px; padding-bottom: 20px; border-bottom: 2px solid #0073aa; }

.crewcommerce-approvals-heading h2 { margin: 0; padding: 0; border: 0; color: #0073aa; }

.crewcommerce-approvals-count { color: #666; font-size: 14px; }

.approval-card-body { flex: 1; min-width: 0; }

.approval-waiting-badge { font-size: 12px; color: #666; background: #f0f0f1; padding: 3px 10px; border-radius: 12px; white-space: nowrap; }

.approval-waiting-stale { color: #8a2d0a; background: #fbe4d5; font-weight: 600; }

.approval-card-stale { border-left: 4px solid #d63638; }

.approval-card-unassigned { border-left: 4px solid #dba617; }

.approval-unassigned-badge { color: #8a6d00; background: #fcf1cd; font-weight: 600; }

.approval-unassigned-note { color: #666; font-style: italic; margin: 0 0 10px; }

.approval-decided-badge { color: #0a5c36; background: #d1e7dd; font-weight: 600; }

.approval-decided-badge.is-rejected { color: #3c434a; background: #f0f0f1; }

/* Status badges for My Requests and Company Order History */

.status-pending { background: #fff3cd; color: #856404; }

.status-approved { background: #d1e7dd; color: #0a5c36; }

.status-rejected { background: #f8d7da; color: #842029; }

.status-cancelled { background: #e2e3e5; color: #41464b; }

.status-placed { background: #cfe2ff; color: #084298; }

.status-processing { background: #cfe2ff; color: #084298; }

.status-completed { background: #d1e7dd; color: #0a5c36; }

.status-on-hold { background: #f8d7da; color: #842029; }

/* My Requests */

.crewcommerce-my-requests { max-width: 800px; }

.request-card { background: #fff; border: 1px solid #ddd; border-radius: 6px; padding: 16px; margin-bottom: 16px; }

.request-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }

.request-order strong { font-size: 1.05em; }

.request-total { margin-left: 12px; color: #555; }

.request-status-badge { padding: 3px 10px; border-radius: 12px; font-size: .8em; font-weight: 600; text-transform: uppercase; }

.request-meta { display: flex; flex-wrap: wrap; gap: 12px; font-size: .85em; color: #666; margin-bottom: 10px; }

.meta-wait { color: #856404; font-weight: 600; }

.meta-unassigned { color: #999; font-style: italic; }

.request-notes { background: #f8f9fa; border-left: 3px solid #dee2e6; padding: 8px 12px; margin-bottom: 10px; font-size: .9em; }

.request-items ul { margin: 0; padding-left: 18px; font-size: .9em; color: #555; }

.request-actions { margin-top: 12px; display: flex; gap: 8px; }

/* Company Order History */

.order-status-badge { padding: 4px 8px; border-radius: 12px; font-size: .8em; font-weight: 600; text-transform: uppercase; }

.approval-badge { padding: 4px 8px; border-radius: 12px; font-size: .8em; font-weight: 600; text-transform: uppercase; }

.approval-pending { background: #fff3cd; color: #856404; }

.approval-approved { background: #d1e7dd; color: #0a5c36; }

.approval-rejected { background: #f8d7da; color: #842029; }

.approval-none { background: #e2e3e5; color: #6c757d; }

/* Registration: B2B fields on WooCommerce's register form, and company
   selection on the "Edit account" form (class-registration.php). */

/* Confirmation shown at the top of an approval card after Approve / Reject (the card stays, its controls go) */

.crewcommerce-decision {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    border-radius: 8px;
    background: #e8f5ee;
    border: 1px solid #b6dfc6;
    color: #1f5c3a;
    font-weight: 600;
    margin-bottom: 15px;
}

.crewcommerce-decision::before {
    content: "\2713";
    flex: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #1f7a4d;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
}

.crewcommerce-decision.is-rejected { background: #f6f7f7; border-color: #dcdcde; color: #3c434a; }

.crewcommerce-decision.is-rejected::before { content: "\2715"; background: #8c8f94; }

/* Buttons on CrewCommerce screens look like buttons in every theme,
   including block themes that leave WooCommerce's .button class unstyled. */
.woocommerce-account .woocommerce-MyAccount-content [class^="crewcommerce-"] .button {
    display: inline-block;
    padding: 0.5em 1.1em;
    font-size: 0.9em;
    font-weight: 500;
    line-height: 1.4;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    background: #f6f7f7;
    color: #1d2327;
    text-decoration: none;
    cursor: pointer;
}

.woocommerce-account .woocommerce-MyAccount-content [class^="crewcommerce-"] .button:hover {
    background: #f0f0f1;
    border-color: #8c8f94;
}

.woocommerce-account .woocommerce-MyAccount-content [class^="crewcommerce-"] .button.button-primary {
    background: #1d2327;
    border-color: #1d2327;
    color: #fff;
}

.woocommerce-account .woocommerce-MyAccount-content [class^="crewcommerce-"] .button.button-primary:hover {
    background: #3c434a;
}

.woocommerce-account .woocommerce-MyAccount-content [class^="crewcommerce-"] .button.button-small {
    padding: 0.3em 0.8em;
    font-size: 0.85em;
}

.woocommerce-account .woocommerce-MyAccount-content [class^="crewcommerce-"] .button.approve-btn {
    background: #1e7e34;
    border-color: #1e7e34;
    color: #fff;
}

.woocommerce-account .woocommerce-MyAccount-content [class^="crewcommerce-"] .button.approve-btn:hover {
    background: #19692c;
}

.woocommerce-account .woocommerce-MyAccount-content [class^="crewcommerce-"] .button.reject-btn {
    background: #b02a37;
    border-color: #b02a37;
    color: #fff;
}

.woocommerce-account .woocommerce-MyAccount-content [class^="crewcommerce-"] .button.reject-btn:hover {
    background: #8f222c;
}

/* Manage Team fits the content column: email under the name, compact cells. */
.team-members-table .crewcommerce-table th,
.team-members-table .crewcommerce-table td {
    padding: 12px 14px;
    vertical-align: middle;
}

.team-members-table .member-name {
    font-weight: 600;
}

.team-members-table .member-email {
    display: block;
    font-size: 0.85em;
    color: #646970;
    overflow-wrap: break-word;
}

.team-members-table .member-role-cell,
.team-members-table .member-joined,
.team-members-table .member-actions {
    width: 1%;
    white-space: nowrap;
}

.team-members-table .member-joined {
    font-size: 0.9em;
    color: #50575e;
}

.team-members-table .member-role-cell .role-note {
    white-space: normal;
    min-width: 9em;
}

.team-members-table .role-note {
    display: block;
    font-size: 0.8em;
    color: #646970;
}
