/**
 * CMT Assignment Manager - Public View Styles
 */

.cmt-public-assignments {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.cmt-public-header {
    margin-bottom: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.cmt-public-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.cmt-public-filters {
    display: flex;
    gap: 12px;
}

.cmt-public-search,
.cmt-public-filter {
    padding: 10px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s;
}

.cmt-public-search {
    min-width: 300px;
}

.cmt-public-search:focus,
.cmt-public-filter:focus {
    outline: none;
    border-color: #0d9488;
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1);
}

.cmt-public-table-wrap {
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow-x: auto;
}

.cmt-public-table {
    width: 100%;
    border-collapse: collapse;
}

.cmt-public-table thead {
    background: #f8fafc;
    border-bottom: 2px solid #e2e8f0;
}

.cmt-public-table th {
    padding: 16px;
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.cmt-public-table tbody tr {
    border-bottom: 1px solid #f1f5f9;
}

.cmt-public-table tbody tr:hover {
    background: #f8fafc;
}

.cmt-public-table td {
    padding: 16px;
    font-size: 14px;
    color: #475569;
    vertical-align: middle;
}

/* Committee name column - prevent messy wrapping */
.cmt-public-name {
    font-weight: 600;
    color: #1e293b;
    min-width: 220px;
    white-space: nowrap;
}

/* Allow wrapping on smaller screens */
@media (max-width: 1200px) {
    .cmt-public-name {
        white-space: normal;
        min-width: 180px;
    }
}

/* Entity name link styling */
.cmt-entity-link {
    color: #0d9488;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

.cmt-entity-link:hover {
    color: #0f766e;
    text-decoration: underline;
}

.cmt-public-badge {
    display: inline-block;
    padding: 4px 10px;
    background: #ccfbf1;
    color: #0f766e;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
}

.cmt-public-person {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cmt-public-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.cmt-public-person-small {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    background: #f8fafc;
    border-radius: 12px;
    margin: 2px;
    font-size: 13px;
}

.cmt-public-avatar-sm {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

.cmt-public-none {
    color: #cbd5e1;
    font-style: italic;
}

.cmt-public-loading,
.cmt-public-error,
.cmt-public-empty {
    text-align: center;
    padding: 40px 20px;
    color: #64748b;
}

.cmt-public-error {
    color: #dc2626;
}

/*  Responsive */
@media (max-width: 1024px) {
    .cmt-public-table-wrap {
        overflow-x: scroll;
    }

    .cmt-public-table {
        min-width: 900px;
    }
}

/* Inactive User Styles - Frontend: 70% opacity */
.cmt-user-inactive {
    opacity: 0.7;
}

.cmt-public-person.cmt-user-inactive .cmt-public-avatar,
.cmt-public-person-small.cmt-user-inactive .cmt-public-avatar-sm {
    filter: grayscale(30%);
}