* {
    box-sizing: border-box;
}

:root {
    --mew-primary: #1d4ed8;
    --mew-primary-dark: #1e3a8a;
    --mew-bg: #f3f4f6;
    --mew-card: #ffffff;
    --mew-text: #111827;
    --mew-muted: #6b7280;
    --mew-border: #e5e7eb;
    --mew-green: #16a34a;
    --mew-yellow: #f59e0b;
    --mew-red: #dc2626;
    --mew-purple: #7c3aed;
}

body {
    margin: 0;
    background: var(--mew-bg);
    color: #374151;
    font-family: Arial, Helvetica, sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

.mew-container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 24px 16px 40px;
}

.mew-card {
    background: var(--mew-card);
    border: 1px solid var(--mew-border);
    border-radius: 20px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
    padding: 22px;
}

.mew-page-title {
    margin-bottom: 18px;
}

.mew-page-title h1 {
    margin: 0;
    color: var(--mew-text);
    font-size: 28px;
}

.mew-page-title p {
    margin: 8px 0 0;
    color: var(--mew-muted);
    line-height: 1.5;
}

.mew-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.mew-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.mew-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.mew-btn {
    display: inline-block;
    background: var(--mew-primary);
    color: #fff;
    padding: 11px 15px;
    border-radius: 12px;
    font-weight: bold;
    border: none;
    cursor: pointer;
    font-size: 14px;
}

.mew-btn:hover {
    background: var(--mew-primary-dark);
}

.mew-btn-secondary {
    background: #e5e7eb;
    color: #374151;
}

.mew-btn-secondary:hover {
    background: #d1d5db;
}

.mew-btn-green {
    background: var(--mew-green);
}

.mew-btn-yellow {
    background: var(--mew-yellow);
}

.mew-btn-red {
    background: var(--mew-red);
}

.mew-alert {
    padding: 14px 16px;
    border-radius: 14px;
    margin-bottom: 16px;
    font-weight: bold;
    line-height: 1.4;
}

.mew-alert-ok {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.mew-alert-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.mew-alert-warning {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

.mew-form label {
    display: block;
    color: var(--mew-text);
    font-weight: bold;
    margin: 13px 0 6px;
}

.mew-form input,
.mew-form select,
.mew-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    background: #fff;
    font-size: 15px;
    font-family: Arial, Helvetica, sans-serif;
}

.mew-form textarea {
    min-height: 120px;
    resize: vertical;
}

.mew-form input:focus,
.mew-form select:focus,
.mew-form textarea:focus {
    outline: none;
    border-color: var(--mew-primary);
    box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.12);
}

.mew-badge {
    display: inline-block;
    padding: 5px 9px;
    border-radius: 999px;
    background: #e5e7eb;
    color: #374151;
    font-size: 12px;
    font-weight: bold;
}

.mew-badge-ok {
    background: #dcfce7;
    color: #166534;
}

.mew-badge-warning {
    background: #fef3c7;
    color: #92400e;
}

.mew-badge-error {
    background: #fee2e2;
    color: #991b1b;
}

.mew-muted {
    color: var(--mew-muted);
}

.mew-table-wrap {
    overflow-x: auto;
}

.mew-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 900px;
}

.mew-table th,
.mew-table td {
    padding: 13px 12px;
    border-bottom: 1px solid var(--mew-border);
    text-align: left;
    vertical-align: top;
    font-size: 14px;
}

.mew-table th {
    background: #f9fafb;
    color: #374151;
}

.mew-empty {
    background: #f9fafb;
    border: 1px dashed #d1d5db;
    color: var(--mew-muted);
    border-radius: 14px;
    padding: 22px;
    text-align: center;
}

@media (max-width: 900px) {
    .mew-grid-2,
    .mew-grid-3,
    .mew-grid-4 {
        grid-template-columns: 1fr;
    }

    .mew-container {
        padding: 18px 12px 34px;
    }
}

/* ALERTAS */

.mew-alert{

position:fixed;

top:25px;

right:25px;

width:390px;

max-width:95%;

display:flex;

align-items:center;

gap:15px;

padding:18px;

border-radius:18px;

background:#fff;

box-shadow:0 20px 50px rgba(0,0,0,.18);

z-index:999999;

animation:mewAlert .35s;

transition:.3s;

}

@keyframes mewAlert{

from{

opacity:0;

transform:translateY(-20px);

}

to{

opacity:1;

transform:translateY(0);

}

}

.mew-alert-icon{

font-size:28px;

}

.mew-alert-texto{

flex:1;

font-size:15px;

font-weight:700;

line-height:1.5;

}

.mew-alert-close{

border:none;

background:none;

cursor:pointer;

font-size:24px;

}

.alert-success{

border-left:6px solid #22c55e;

}

.alert-success .mew-alert-icon{

color:#22c55e;

}

.alert-error{

border-left:6px solid #ef4444;

}

.alert-error .mew-alert-icon{

color:#ef4444;

}

.alert-warning{

border-left:6px solid #f59e0b;

}

.alert-warning .mew-alert-icon{

color:#f59e0b;

}

.alert-info{

border-left:6px solid #2563eb;

}

.alert-info .mew-alert-icon{

color:#2563eb;

}

/* ==========================================================
BOTÃO TOPO
========================================================== */

#btnTopo{

position:fixed;

bottom:25px;

right:25px;

width:55px;

height:55px;

display:none;

align-items:center;

justify-content:center;

border:none;

border-radius:50%;

background:#2563eb;

color:#fff;

cursor:pointer;

font-size:22px;

box-shadow:0 10px 25px rgba(0,0,0,.25);

z-index:99999;

transition:.3s;

}

#btnTopo:hover{

transform:translateY(-3px);

background:#1d4ed8;

}

/* ==========================================================
PREVIEW
========================================================== */

.preview-imagem{

width:110px;

height:110px;

object-fit:cover;

border-radius:12px;

margin:8px;

border:2px solid #e5e7eb;

}

/* ==========================================================
COOKIE LGPD
========================================================== */

.cookie-banner{

position:fixed;

bottom:25px;

left:50%;

transform:translateX(-50%);

width:min(900px,95%);

background:#ffffff;

border-radius:18px;

padding:25px;

box-shadow:0 15px 40px rgba(0,0,0,.18);

z-index:999999;

animation:cookieFade .4s;

}

@keyframes cookieFade{

from{

opacity:0;

transform:translate(-50%,25px);

}

to{

opacity:1;

transform:translate(-50%,0);

}

}

.cookie-conteudo{

display:flex;

justify-content:space-between;

align-items:center;

gap:25px;

flex-wrap:wrap;

}

.cookie-texto{

flex:1;

}

.cookie-texto h3{

margin-bottom:10px;

font-size:22px;

}

.cookie-texto p{

line-height:1.6;

color:#475569;

}

.cookie-botoes{

display:flex;

gap:15px;

}

.btn-cookie{

padding:14px 26px;

border:none;

border-radius:12px;

cursor:pointer;

font-size:15px;

font-weight:700;

transition:.25s;

}

.btn-cookie.aceitar{

background:#22c55e;

color:#fff;

}

.btn-cookie.aceitar:hover{

background:#16a34a;

}

.btn-cookie.recusar{

background:#ef4444;

color:#fff;

}

.btn-cookie.recusar:hover{

background:#dc2626;

}

@media(max-width:768px){

.cookie-conteudo{

flex-direction:column;

}

.cookie-botoes{

width:100%;

}

.btn-cookie{

flex:1;

}

}