* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #f3f6fb;
    color: #1f2937;
}
.container {
    max-width: 920px;
    margin: 32px auto;
    padding: 0 16px;
}
.container.wide { max-width: 1280px; }
.card {
    background: #fff;
    border-radius: 14px;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, .08);
}
.header {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    margin-bottom: 20px;
}
h1 { margin: 0; font-size: 24px; }
.grid-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}
label {
    display: flex;
    flex-direction: column;
    font-weight: 700;
    gap: 6px;
}
input, textarea {
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    padding: 11px 12px;
    font-size: 15px;
    background: #fff;
}
input:focus, textarea:focus {
    outline: 2px solid #2563eb33;
    border-color: #2563eb;
}
.full { grid-column: 1 / -1; }
.btn-primary, .btn-secondary {
    border: 0;
    border-radius: 10px;
    padding: 12px 16px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    text-align: center;
}
.btn-primary { background: #1d4ed8; color: #fff; font-size: 16px; }
.btn-secondary { background: #e2e8f0; color: #0f172a; }
.alert { padding: 12px; border-radius: 10px; margin-bottom: 16px; }
.success { background: #dcfce7; color: #166534; }
.table-wrapper { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { border-bottom: 1px solid #e5e7eb; padding: 10px; text-align: left; white-space: nowrap; }
th { background: #f8fafc; }
a { color: #1d4ed8; font-weight: 700; }
@media (max-width: 700px) {
    .grid-form { grid-template-columns: 1fr; }
    .header { flex-direction: column; align-items: stretch; }
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 12px;
    background: #f4f6f9;
    font-family: Arial, sans-serif;
}

.container {
    width: 100%;
    max-width: 100%;
}

.card {
    background: white;
    border-radius: 16px;
    padding: 20px;
    width: 100%;
    overflow: hidden;
}

form {
    width: 100%;
}

input,
select,
textarea,
button {
    width: 100%;
    max-width: 100%;
    font-size: 16px;
}

.table-wrapper {
    overflow-x: auto;
}

table {
    min-width: 1100px;
}

input,
select {
    padding: 16px;
    border-radius: 12px;
    border: 1px solid #ccc;
    margin-bottom: 18px;
}

.preview {
    width: 100%;
    max-width: 250px;
    margin-top: 10px;
    border-radius: 10px;
    display: none;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 14px;
    background: #f4f6f9;
    font-family: Arial, sans-serif;
}

.container {
    width: 100%;
    max-width: 900px;
    margin: auto;
}

.wide {
    max-width: 1400px;
}

.card {
    background: white;
    border-radius: 18px;
    padding: 20px;
}

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

input,
button {
    width: 100%;
    padding: 15px;
    margin-bottom: 16px;
    border-radius: 10px;
    border: 1px solid #ccc;
    font-size: 16px;
}

button,
.btn-secondary,
.btn-danger {
    text-decoration: none;
    display: inline-block;
    padding: 12px 18px;
    border-radius: 10px;
    font-weight: bold;
}

button,
.btn-secondary {
    background: #dfe5ef;
    color: #000;
    border: none;
}

.btn-danger {
    background: #dc3545;
    color: white;
}

.table-wrapper {
    overflow-x: auto;
}

table {
    width: 100%;
    min-width: 800px;
    border-collapse: collapse;
}

th,
td {
    padding: 12px;
    border-bottom: 1px solid #ddd;
    text-align: left;
}

.login-container {
    max-width: 420px;
    margin: 60px auto;
}
.erro {
    background: #ffd4d4;
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 15px;
}
