*{box-sizing:border-box}
body{
    margin:0;
    font-family:Arial,Helvetica,sans-serif;
    background:#0f172a;
    color:#e5e7eb;
}
a{color:#93c5fd;text-decoration:none}
a:hover{text-decoration:underline}
.topbar{
    background:#111827;
    border-bottom:1px solid #1f2937;
    padding:16px 24px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    position:sticky;
    top:0;
    z-index:100;
    gap:16px;
}
.brand-wrap{
    display:flex;
    align-items:center;
}
.brand{
    font-size:24px;
    font-weight:700;
    color:#f8fafc;
}
.brand-link{
    display:flex;
    align-items:center;
    gap:14px;
    color:#f8fafc;
    text-decoration:none;
}
.brand-link:hover{
    text-decoration:none;
}
.brand-logo{
    width:52px;
    height:52px;
    object-fit:contain;
    border-radius:14px;
    background:#0b1220;
    border:1px solid #334155;
    padding:6px;
}
.brand-text{
    font-size:24px;
    font-weight:700;
    line-height:1.1;
}
.wrap{
    max-width:1400px;
    margin:0 auto;
    padding:24px;
}
.menu{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    margin:20px 0 28px;
}
.menu a{
    background:#1e293b;
    color:#e5e7eb;
    padding:10px 16px;
    border-radius:12px;
    border:1px solid #334155;
    font-weight:600;
}
.menu a:hover{
    background:#334155;
    text-decoration:none;
}
.card{
    background:#111827;
    border:1px solid #1f2937;
    border-radius:18px;
    padding:20px;
    margin-bottom:20px;
    box-shadow:0 10px 25px rgba(0,0,0,0.25);
}
h1,h2,h3{
    margin-top:0;
    color:#f8fafc;
}
.grid{
    display:grid;
    gap:16px;
}
.grid.cards{
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
}
.stat{
    background:#1e293b;
    border:1px solid #334155;
    border-radius:18px;
    padding:18px;
}
.stat .n{
    font-size:30px;
    font-weight:700;
    margin-top:8px;
}
form{
    display:grid;
    gap:14px;
}
.form-grid{
    display:grid;
    gap:14px;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
}
label{
    display:block;
    font-size:14px;
    margin-bottom:6px;
    color:#cbd5e1;
}
input,select,textarea,button{
    width:100%;
    padding:12px 14px;
    border-radius:12px;
    border:1px solid #334155;
    background:#0f172a;
    color:#f8fafc;
    font-size:15px;
}
textarea{
    min-height:90px;
    resize:vertical;
}
button,.btn{
    background:#2563eb;
    border:none;
    color:#fff;
    font-weight:700;
    cursor:pointer;
    display:inline-block;
    width:auto;
    padding:12px 18px;
    border-radius:12px;
}
button:hover,.btn:hover{
    background:#1d4ed8;
    text-decoration:none;
}
.btn-sec{
    background:#475569;
}
.btn-sec:hover{
    background:#334155;
}
.btn-danger{
    background:#b91c1c;
}
.btn-danger:hover{
    background:#991b1b;
}
table{
    width:100%;
    border-collapse:collapse;
    overflow:hidden;
}
th,td{
    padding:12px 10px;
    border-bottom:1px solid #1f2937;
    text-align:left;
    vertical-align:top;
}
th{
    color:#93c5fd;
    font-size:14px;
    background:#0b1220;
}
tr:hover td{
    background:#0b1220;
}
.badge{
    display:inline-block;
    padding:6px 10px;
    border-radius:999px;
    font-size:12px;
    font-weight:700;
}
.badge.verde{background:#14532d;color:#dcfce7}
.badge.vermelho{background:#7f1d1d;color:#fee2e2}
.badge.azul{background:#1e3a8a;color:#dbeafe}
.badge.laranja{background:#7c2d12;color:#ffedd5}
.badge.cinza{background:#374151;color:#f3f4f6}
.flash{
    padding:14px 16px;
    border-radius:14px;
    margin-bottom:20px;
    font-weight:700;
}
.flash.ok{
    background:#14532d;
    color:#dcfce7;
}
.flash.erro{
    background:#7f1d1d;
    color:#fee2e2;
}
.login-box{
    max-width:460px;
    margin:70px auto;
}
.login-card{
    text-align:center;
}
.login-logo-wrap{
    display:flex;
    justify-content:center;
    margin-bottom:10px;
}
.login-logo{
    width:120px;
    height:120px;
    object-fit:contain;
    border-radius:22px;
    background:#0b1220;
    border:1px solid #334155;
    padding:10px;
    box-shadow:0 10px 30px rgba(0,0,0,0.35);
}
.small{
    color:#94a3b8;
    font-size:13px;
}
.actions{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
}
@media (max-width: 768px){
    .topbar{
        padding:14px 16px;
        flex-direction:column;
        align-items:flex-start;
    }
    .brand-logo{
        width:44px;
        height:44px;
    }
    .brand-text{
        font-size:20px;
    }
    .wrap{
        padding:16px;
    }
    .login-logo{
        width:96px;
        height:96px;
    }
}

.brand-logo{
width:36px;
height:36px;
object-fit:contain;
border-radius:8px;
margin-right:10px;
background:#0b1220;
border:1px solid #334155;
padding:3px;
}


.brand-logo{
width:36px;
height:36px;
object-fit:contain;
border-radius:8px;
margin-right:10px;
background:#0b1220;
border:1px solid #334155;
padding:3px;
}

