*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    font-size: 14px;
    color: #333333;
    background: #f4f6f9;
    line-height: 1.6;
}

a { color: #2563a8; text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Header ── */
.sige-header {
    background: #1a3a5c;
    padding: 10px 24px;
    display: flex;
    align-items: center;
    gap: 14px;
}
.sige-header img { height: 38px; }
.sige-header-title {
    color: #ffffff;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.02em;
}

/* ── Nav ── */
.sige-nav {
    background: #2563a8;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
}
.sige-nav a {
    color: #ffffff;
    font-size: 13px;
    padding: 10px 20px;
    display: inline-block;
    text-decoration: none;
    transition: background 0.15s;
}
.sige-nav a:hover,
.sige-nav a.active { background: #1a4f8a; text-decoration: none; }

/* ── Content ── */
.sige-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 24px;
}

.page-title {
    color: #1a3a5c;
    font-size: 20px;
    font-weight: 500;
    border-bottom: 2px solid #2563a8;
    padding-bottom: 8px;
    margin-bottom: 20px;
}

/* ── Footer ── */
.sige-footer {
    background: #1a3a5c;
    color: #ffffff;
    text-align: center;
    font-size: 13px;
    padding: 14px;
    margin-top: 40px;
}

/* ── Cards ── */
.card {
    background: #ffffff;
    border: 1px solid #dde3ec;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 16px;
}
.card-title {
    font-size: 15px;
    font-weight: 500;
    color: #1a3a5c;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eef1f6;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 16px;
}
.card-stat { text-align: center; }
.card-stat .stat-value { font-size: 28px; font-weight: 500; color: #2563a8; }
.card-stat .stat-label { font-size: 12px; color: #666; margin-top: 4px; }
.card-stat .stat-link { font-size: 12px; margin-top: 8px; display: inline-block; }

/* ── Botões ── */
.btn {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    text-decoration: none;
    transition: filter 0.15s;
}
.btn:hover { filter: brightness(0.9); text-decoration: none; }
.btn-primary  { background: #2563a8; color: #fff; }
.btn-success  { background: #198754; color: #fff; }
.btn-danger   { background: #dc3545; color: #fff; }
.btn-warning  { background: #f0a500; color: #fff; }
.btn-secondary{ background: #6c757d; color: #fff; }
.btn-sm { padding: 5px 10px; font-size: 12px; }

/* ── Tabelas ── */
.table-sige {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.table-sige thead tr {
    background: #1a3a5c;
    color: #ffffff;
}
.table-sige th, .table-sige td {
    padding: 9px 12px;
    border: 1px solid #dde3ec;
    text-align: left;
}
.table-sige tbody tr:nth-child(even) { background: #f8f9fc; }
.table-sige tbody tr:hover { background: #edf2fa; }

/* ── Alertas ── */
.alert {
    padding: 10px 14px;
    border-radius: 4px;
    font-size: 13px;
    margin-bottom: 14px;
    border-left: 4px solid;
}
.alert-success { background: #d1eddf; border-color: #198754; color: #0f5132; }
.alert-error   { background: #f8d7da; border-color: #dc3545; color: #842029; }
.alert-warning { background: #fff3cd; border-color: #f0a500; color: #664d03; }
.alert-info    { background: #d0e8fb; border-color: #2563a8; color: #0a3c6e; }

/* ── Formulários ── */
.form-group { margin-bottom: 14px; }
.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #444;
    margin-bottom: 5px;
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #c8d0dc;
    border-radius: 4px;
    font-size: 13px;
    font-family: inherit;
    color: #333;
    background: #fff;
    transition: border-color 0.15s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2563a8;
    box-shadow: 0 0 0 2px rgba(37,99,168,0.15);
}
.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
}

/* ── Utilitários ── */
.text-muted  { color: #888; font-size: 12px; }
.text-center { text-align: center; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mb-16 { margin-bottom: 16px; }
.flex  { display: flex; }
.gap-8 { gap: 8px; }
.badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 500;
}
.badge-success { background: #d1eddf; color: #0f5132; }
.badge-danger  { background: #f8d7da; color: #842029; }
.badge-warning { background: #fff3cd; color: #664d03; }
.badge-info    { background: #d0e8fb; color: #0a3c6e; }
