
*{
margin:0;
padding:0;
box-sizing:border-box;
font-family:Arial, Helvetica, sans-serif;
}

body{
background:#f1f5f9;
color:#0f172a;
}

.lista-contatos-vinculados{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(300px,1fr));
    gap:14px;
}

.card-contato-vinculado{
    background:#f8fafc;
    border:1px solid #e2e8f0;
    border-radius:16px;
    padding:16px;
    display:flex;
    flex-direction:column;
    gap:12px;
}

.dados-contato-vinculado{
    text-decoration:none;
    color:#0f172a;
}

.dados-contato-vinculado strong{
    display:block;
    font-size:17px;
    margin-bottom:6px;
}

.dados-contato-vinculado span{
    display:block;
    color:#64748b;
    font-size:14px;
}

.acoes-contato-vinculado{
    display:flex;
    flex-direction:column;
    gap:6px;
    font-size:14px;
}

.acoes-contato-vinculado a{
    word-break:break-word;
}

@media(min-width:900px){
    .card-contato-vinculado{
        flex-direction:row;
        justify-content:space-between;
        align-items:flex-start;
    }

    .acoes-contato-vinculado{
        align-items:flex-end;
        text-align:right;
        max-width:55%;
    }
}

.sidebar{
width:260px;
background:#0f172a;
color:white;
padding:25px;
height:100vh;
display:flex;
flex-direction:column;
position:fixed;
top:0;
left:0;
overflow-y:auto;
}

.logo{
display:flex;
flex-direction:column;
align-items:center;
text-align:center;
margin-bottom:30px;
line-height:1.3;
}

.logo-img{
max-width:150px;
height:auto;
margin-bottom:12px;
display:block;
}

.logo-texto{
font-size:22px;
font-weight:bold;
color:white;
}

.menu-item{
padding:12px 14px;
margin-bottom:8px;
border-radius:10px;
cursor:pointer;
transition:0.2s;
font-size:15px;
}

.menu-item:hover{
background:#1e293b;
}

.sidebar-footer{
margin-top:auto;
padding-top:20px;
border-top:1px solid rgba(255,255,255,.08);
}

.user-logado{
font-size:13px;
color:#94a3b8;
margin-bottom:10px;
line-height:1.4;
}

.main{
margin-left:260px;
padding:30px;
min-height:100vh;
}

.topo{
display:flex;
justify-content:space-between;
align-items:center;
gap:20px;
margin-bottom:25px;
flex-wrap:wrap;
}

.topo h1{
font-size:28px;
}

.search{
padding:12px 15px;
width:320px;
max-width:100%;
border:1px solid #cbd5e1;
border-radius:10px;
font-size:15px;
background:white;
}

.grid{
display:grid;
grid-template-columns:repeat(auto-fill,minmax(260px,1fr));
gap:18px;
}

.card{
background:white;
padding:20px;
border-radius:16px;
box-shadow:0 8px 20px rgba(0,0,0,.05);
cursor:pointer;
transition:.2s;
}

.card:hover{
transform:translateY(-3px);
box-shadow:0 12px 25px rgba(0,0,0,.08);
}

.foto{
width:72px;
height:72px;
border-radius:50%;
object-fit:cover;
display:block;
margin:0 auto 12px auto;
border:3px solid #e2e8f0;
}

.nome{
font-size:18px;
font-weight:bold;
text-align:center;
margin-bottom:12px;
}

.info{
font-size:14px;
color:#475569;
margin-bottom:6px;
word-break:break-word;
}

.tag{
display:inline-block;
margin-top:10px;
padding:6px 10px;
font-size:12px;
background:#e2e8f0;
border-radius:999px;
color:#334155;
}

.top-simple{
display:flex;
justify-content:space-between;
align-items:center;
margin-bottom:20px;
gap:12px;
flex-wrap:wrap;
}

.top-title{
font-size:24px;
font-weight:800;
color:#0f172a;
}

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

.btn-top{
display:inline-block;
padding:11px 15px;
border-radius:12px;
text-decoration:none;
font-weight:800;
font-size:14px;
}

.btn-dark{
background:#0f172a;
color:white;
}

.btn-light{
background:#e2e8f0;
color:#0f172a;
}

@media(max-width:900px){
.sidebar{
position:relative;
width:100%;
height:auto;
}

.main{
margin-left:0;
padding:20px;
}

.grid{
grid-template-columns:1fr;
}

.topo{
flex-direction:column;
align-items:flex-start;
}

.search{
width:100%;
}
}

@media(max-width:700px){
.top-simple{
align-items:flex-start;
flex-direction:column;
}

.top-actions{
width:100%;
}

.btn-top{
flex:1;
text-align:center;
}

.top-simple,
.hero-actions,
.btns,
.btn,
.btn-top{
display:none !important;
}

.page{
max-width:100% !important;
padding:0 !important;
margin:0 !important;
}

.hero,
.hero-entidade,
.box{
box-shadow:none !important;
border:1px solid #ddd !important;
page-break-inside:avoid;
}

.card-pessoa,
.info,
.item{
page-break-inside:avoid;
}

a{
color:#0f172a !important;
text-decoration:none !important;
}

@media print{

body{
background:white !important;
}

/* ESCONDER LIXO */
.sidebar,
.top-actions,
.hero-actions,
.actions-top,
.btn,
.btn-action,
.btn-top,
.filtros-box,
.dashboard,
.paginacao,
.ordenacao-bar{
display:none !important;
}

/* MOSTRAR CABEÇALHO */
.cabecalho-impressao{
display:flex !important;
align-items:center;
gap:16px;
margin-bottom:20px;
border-bottom:1px solid #ddd;
padding-bottom:12px;
}

.cabecalho-impressao img{
max-width:120px;
}

/* LAYOUT LIMPO */
.main,
.page{
margin:0 !important;
padding:0 !important;
max-width:100% !important;
}

/* CARDS */
.card,
.hero-card,
.hero-entidade,
.box,
.info-card,
.rel-section{
box-shadow:none !important;
border:1px solid #ddd !important;
break-inside:avoid;
page-break-inside:avoid;
}

/* GRID */
.grid{
grid-template-columns:repeat(2, 1fr) !important;
}

/* LINKS */
a{
text-decoration:none !important;
color:#000 !important;
}

}
