.content { height: 100vh; display: flex; flex-direction: column; overflow: hidden; padding: 20px 40px; background-color: #f0f2f5; }

/* Header e Filtros Pills Padronizados */
.header-main, .header-secao-lista { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; flex-shrink: 0; }
.fixed-title { font-size: 1.6rem; color: #2c3e50; font-weight: 800; margin: 0; }

.filtros-top-global, .filtros-historico { display: flex; gap: 10px; }

.filtro-pill { 
    background: #2c3e50; 
    color: white; 
    padding: 6px 15px; 
    border-radius: 20px; 
    font-size: 0.75rem; 
    display: flex; 
    align-items: center; 
    gap: 8px; 
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
.filtro-pill label { color: #bdc3c7; font-size: 0.65rem; font-weight: 800; text-transform: uppercase; }
.filtro-pill select { background: transparent; border: none; color: white; font-weight: bold; font-size: 0.8rem; outline: none; cursor: pointer; }
.filtro-pill select option { background: #2c3e50; color: white; }

.form-container { background: white; padding: 20px; border-radius: 12px; box-shadow: 0 4px 10px rgba(0,0,0,0.05); margin-bottom: 20px; flex-shrink: 0; }
.row { display: flex; gap: 15px; margin-bottom: 15px; flex-wrap: wrap; }
.col { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.col label { font-size: 0.7rem; font-weight: bold; color: #34495e; text-transform: uppercase; }

input[type="text"], input[type="password"], select { padding: 8px; border: 1px solid #ddd; border-radius: 6px; font-size: 0.85rem; outline: none; }
.status-flags { display: flex; gap: 12px; background: #f8f9fa; padding: 8px; border-radius: 6px; border: 1px solid #ddd; }
.radio-label { font-size: 0.8rem; font-weight: 600; cursor: pointer; display: flex; align-items: center; gap: 5px; }

.permissoes-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; background: #f1f3f5; padding: 10px; border-radius: 8px; border: 1px solid #dee2e6; }
.chk-permissao { background: white; padding: 6px 10px; border-radius: 5px; border: 1px solid #ddd; font-size: 0.75rem; font-weight: 600; cursor: pointer; display: flex; align-items: center; gap: 8px; }

.btn-save { background: #27ae60; color: white; border: none; padding: 10px 20px; border-radius: 6px; cursor: pointer; font-weight: bold; }
.btn-clear { background: #95a5a6; color: white; border: none; padding: 10px 15px; border-radius: 6px; cursor: pointer; font-weight: bold; }

.titulo-secao { font-size: 1.2rem; color: #2c3e50; font-weight: 800; margin: 0; }
.usuarios-scroll-area { flex-grow: 1; overflow-y: auto; padding-right: 10px; padding-bottom: 50px; }
.usuarios-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 15px; }

/* PADRONIZAÇÃO DOS CARTÕES */
.card-usuario { background: white; border-radius: 12px; border: 1px solid #e0e0e0; box-shadow: 0 4px 10px rgba(0,0,0,0.05); display: flex; flex-direction: column; overflow: hidden; }

/* Cabeçalho do Card: Nome Centralizado */
.card-usuario-header { background: #2c3e50; color: white; padding: 12px 15px; text-align: center; }
.card-usuario-header h3 { font-size: 0.9rem; font-weight: 800; margin: 0; text-transform: uppercase; letter-spacing: 0.5px; }

/* Corpo do Card: Subtítulo e Ícones Centralizados */
.card-usuario-body { padding: 15px; flex-grow: 1; display: flex; flex-direction: column; align-items: center; text-align: center; }
.card-subtitle { font-size: 0.72rem; color: #7f8c8d; font-weight: 700; margin-bottom: 12px; line-height: 1.4; }

.permissoes-icon-row { display: flex; justify-content: center; align-items: center; gap: 8px; flex-wrap: wrap; padding: 5px 0; font-size: 1.1rem; }
.permissoes-icon-row span { cursor: default; }

/* Rodapé: 3 Colunas (Status | Master | Ações) */
.card-usuario-footer { 
    padding: 10px 15px; 
    background: #f8f9fa; 
    border-top: 1px solid #eee; 
    display: grid;
    grid-template-columns: 1fr 1fr 1fr; /* 3 colunas de tamanhos idênticos */
    align-items: center;
    width: 100%;
}

.status-badge-inline { 
    font-size: 0.6rem; 
    padding: 4px 10px; 
    border-radius: 4px; 
    color: white; 
    font-weight: 900; 
    text-transform: uppercase;
    justify-self: start; /* Alinha totalmente à esquerda da sua coluna */
    white-space: nowrap;
}

.status-user-ativo { background: #27ae60; }
.status-user-bloqueado { background: #e74c3c; }

.badge-master-footer { 
    background: #d4af37; 
    color: white; 
    font-size: 0.55rem; 
    padding: 4px 8px; 
    border-radius: 4px; 
    font-weight: 900; 
    justify-self: center; /* Centro absoluto do rodapé */
    text-align: center;
    min-width: 60px;
}

.action-icons-user { 
    display: flex; 
    gap: 12px; 
    justify-self: end; /* Alinha totalmente à direita da sua coluna */
}

.master-placeholder {
    display: flex;
    justify-content: center;
    width: 100%;
}

.action-icons-user i { cursor: pointer; font-size: 1rem; transition: 0.2s; }
.fa-user-pen { color: #f39c12; }
.fa-trash-can { color: #e74c3c; }