.table_transactions td:not(.chevron) {
    min-width: 240px;
}

.staff-username-cell {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    max-width: 100%;
}

.staff-other-group-badge {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    padding: 2px 8px;
    border-radius: 10px;
    background: #1565c0;
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.03em;
    line-height: 16px;
    text-transform: uppercase;
    white-space: nowrap;
}

tr.staff-row-other-group,
tr.staff-row-other-group td {
    background-color: #e8f1fb;
}

tr.staff-row-other-group td:first-child {
    box-shadow: inset 3px 0 0 #1565c0;
}

.staff-roles-wrap {
    width: calc(100% - 155px);
}

.staff-roles {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 100%;
}

.staff-roles-section {
    background: #fafbfc;
    border: 1px solid #e8eaed;
    border-radius: 8px;
    padding: 10px;
}

.staff-roles-section--external {
    background: #f5f9ff;
    border-color: #bbdefb;
}

.staff-roles-section-title {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #757575;
    margin: 0 0 8px;
}

.staff-roles-section--external .staff-roles-section-title {
    color: #1565c0;
}

.staff-roles-item + .staff-roles-item {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #eceff1;
}

.staff-roles-item-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 6px;
}

.staff-roles-count {
    flex-shrink: 0;
    font-size: 11px;
    color: #757575;
    white-space: nowrap;
}

.staff-role-chip {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
    line-height: 16px;
}

.staff-role-chip--collector {
    background: #e3f2fd;
    color: #1565c0;
}

.staff-role-chip--admin {
    background: #f3e5f5;
    color: #6a1b9a;
}

.staff-roles-agency-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.staff-roles-agency-list li {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 3px 0;
    color: #333;
    font-size: 13px;
    line-height: 1.35;
}

.staff-roles-agency-list li:before {
    content: "";
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #bdbdbd;
    flex-shrink: 0;
}

.staff-roles-agency-list--scroll {
    max-height: 160px;
    overflow-y: auto;
    padding-right: 4px;
}

.staff-roles-agency-name {
    min-width: 0;
}

.staff-roles-agency-badge {
    display: inline-flex;
    align-items: center;
    padding: 1px 6px;
    border-radius: 8px;
    background: #eceff1;
    color: #546e7a;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.tags-filter-elem {
    height: auto !important;
    padding: 10px;
}

.tags-filter-elem md-chips {
    width: 100%;
}

.tags-filter-elem md-chips .md-chips {
    flex-wrap: nowrap !important;
    display: flex !important;
    flex-direction: row !important;
}

.view-stat-restrictions-panel {
    margin-top: 8px;
}

.view-stat-restrictions-title {
    margin: 0 0 6px 0;
    font-weight: 600;
    color: #444;
}

.view-stat-restrictions-desc {
    margin: 0 0 8px 0;
    font-size: 13px;
    line-height: 1.45;
    color: #666;
}

.view-stat-restrictions-examples {
    margin: 0 0 14px 0;
    font-size: 12px;
    line-height: 1.4;
    color: #888;
    font-style: italic;
}

.detail-label {
    font-weight: 500;
    color: #666;
    min-width: 120px;
    margin-right: 10px;
}

.detail-value {
    color: #333;
    flex: 1;
}

.status-color-container {
    display: flex;
    align-items: center;
}

.status-color-circle {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 5px;
}

.status-color-text {
    font-family: monospace;
}

.no-activity {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.no-activity-icon {
    font-size: 48px;
    margin-bottom: 15px;
    color: #ccc;
}

.no-activity p {
    margin: 0;
    font-size: 16px;
}

/* Role cards for create/edit dialog */
.role-card {
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    margin-bottom: 12px;
    padding: 0;
    background: #fafafa;
    transition: all 0.25s ease;
    overflow: hidden;
}
.role-card.role-active {
    background: #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}
.role-card-header {
    padding: 12px 16px 4px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.role-card-header md-checkbox {
    margin: 0 !important;
    width: auto;
}
.role-card-description {
    color: #666;
    font-size: 13px;
    line-height: 1.4;
    margin: 0;
    padding: 0 16px 8px 52px;
}
.role-card-description.text-muted {
    color: #bbb;
}
.role-badge {
    background: #1976d2;
    color: #fff;
    border-radius: 12px;
    padding: 2px 10px;
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
    margin-left: 8px;
}
.role-badge.role-badge-empty {
    background: #bdbdbd;
}
.role-badge.role-badge-all-group {
    background: #1565c0;
}
.agencies-panel {
    background: #f5f7fa;
    border-top: 1px solid #e8eaed;
    padding: 12px 16px 8px;
    margin: 0;
    overflow: hidden;
    max-width: 100%;
}
.agencies-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e0e0e0;
}
.agencies-actions .md-button {
    min-height: 28px;
    line-height: 28px;
    font-size: 12px;
    min-width: 0;
    padding: 0 10px;
    margin: 0 4px 0 0;
    text-transform: none;
}
.agencies-search-input {
    margin: 0 0 8px;
    width: 100%;
}
.agencies-search-input .md-errors-spacer {
    display: none;
}
.agencies-search-empty {
    padding: 8px 0 12px;
    color: #757575;
    font-size: 13px;
    text-align: center;
}
.agencies-group {
    margin-bottom: 10px;
}
.agencies-group:last-child {
    margin-bottom: 0;
}
.agencies-group-title {
    margin: 0 0 6px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #757575;
}
.agencies-group--publish .agencies-group-title {
    color: #ca064d;
}
.agencies-group--external {
    /* border: 1px solid #bbdefb;
    border-radius: 8px;
    padding: 8px;
    background: #f5f9ff; */
}
.agencies-group--external .agencies-group-title {
    color: #1565c0;
}
.agencies-grid {
    display: flex;
    flex-wrap: nowrap;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}
.agencies-column {
    flex: 1 1 50%;
    width: 50%;
    max-width: 50%;
    min-width: 0;
    box-sizing: border-box;
}
.agencies-grid md-checkbox {
    display: flex !important;
    align-items: center;
    width: 100% !important;
    max-width: 100%;
    min-width: 0;
    margin: 2px 0 !important;
    box-sizing: border-box;
    overflow: hidden;
    padding-right: 8px;
}
.agencies-grid md-checkbox .md-container {
    flex: 0 0 auto;
}
.agencies-grid md-checkbox .md-label {
    display: flex !important;
    align-items: center;
    flex: 1 1 auto;
    width: auto !important;
    max-width: none;
    min-width: 0;
    overflow: hidden;
    box-sizing: border-box;
}
.agencies-grid .agency-label {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1 1 auto;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
}
@media (max-width: 600px) {
    .agencies-grid {
        flex-wrap: wrap;
    }
    .agencies-column {
        flex: 0 0 100%;
        width: 100%;
        max-width: 100%;
    }
}
.agency-label {
    display: flex;
    align-items: center;
    gap: 8px;
    vertical-align: middle;
    min-width: 0;
    max-width: 100%;
    width: 100%;
    overflow: hidden;
}
.agency-code-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 3.25rem;
    width: 3.25rem;
    min-width: 3.25rem;
    max-width: 3.25rem;
    box-sizing: border-box;
    padding: 0 4px;
    border-radius: 3px;
    background: #e8eaed;
    color: #424242;
    font-size: 11px;
    font-weight: 600;
    font-family: "Roboto Mono", "SFMono-Regular", Menlo, Consolas, monospace;
    line-height: 18px;
    letter-spacing: 0.02em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.agency-label.publishEverywhere .agency-code-badge {
    background: #fce4ec;
    color: #ca064d;
}
.agency-name {
    flex: 1 1 auto;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.agencies-panel .md-block {
    margin-top: 4px;
}
.role-card-warn {
    padding: 0 16px 4px 52px;
    font-weight: bold;
    font-size: 13px;
}
.role-card-warn.text-muted {
    color: #bbb;
}
.role-card-or {
    padding: 0 16px 4px 52px;
    font-size: 13px;
}
.role-card-or.text-muted {
    color: #bbb;
}
.agencies-info-banner {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 13px;
    line-height: 1.4;
    margin-bottom: 10px;
}
.agencies-info-banner.info-all-group {
    background: #e3f2fd;
    border: 1px solid #90caf9;
    color: #1565c0;
}
.agencies-info-banner.info-all-group .mdi {
    font-size: 18px;
    color: #1976d2;
}
.agencies-info-banner.info-selected {
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    color: #616161;
}
.agencies-info-banner.info-selected .mdi {
    font-size: 18px;
    color: #757575;
}

.custom-fields-container {
    margin-top: 10px;
}

.custom-fields-count {
    font-size: 12px;
    color: #6c757d;
    font-weight: normal;
    margin-left: 8px;
}

.custom-field-item {
    margin-bottom: 15px;
    padding: 12px;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.custom-field-item:hover {
    background-color: #f1f3f4;
    border-color: #d1d5db;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.custom-field-header {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid #dee2e6;
}

.custom-field-name {
    font-weight: 600;
    color: #495057;
    font-size: 14px;
    text-transform: capitalize;
}

.custom-field-type {
    margin-left: 8px;
    font-size: 11px;
    color: #6c757d;
    background-color: #e9ecef;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: monospace;
}

.custom-field-value {
    margin-top: 6px;
}

.value-text {
    color: #212529;
    font-size: 13px;
    line-height: 1.4;
    word-break: break-word;
}

.json-display {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 10px;
    margin: 0;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 12px;
    line-height: 1.4;
    color: #495057;
    white-space: pre-wrap;
    word-wrap: break-word;
    max-height: 200px;
    overflow-y: auto;
    overflow-x: auto;
}
