:root {
  --bg: #0f1115;
  --panel: #181c24;
  --panel2: #202633;
  --text: #eef2ff;
  --muted: #a6b0cf;
  --line: #30384b;
  --ok: #1f8f59;
  --err: #a33131;
  --accent: #7aa2ff;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--text);
}
.topbar {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
  background: #121722;
  position: sticky;
  top: 0;
}
.topbar h1 { margin: 0; font-size: 28px; }
.subtitle { margin: 4px 0 0; color: var(--muted); }
nav { display: flex; gap: 10px; flex-wrap: wrap; }
nav a, .button {
  text-decoration: none;
  color: white;
  background: var(--accent);
  border: 0;
  padding: 10px 14px;
  border-radius: 10px;
  cursor: pointer;
  display: inline-block;
}
.button.small { padding: 6px 10px; font-size: 12px; }
.button.danger { background: #d05151; }
.container { padding: 24px; }
.grid { display: grid; gap: 16px; margin-bottom: 18px; }
.cards-4 { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.two-cols { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }
.card, .panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
}
.card h3, .panel h2 { margin-top: 0; }
.card strong { display: block; font-size: 30px; margin: 8px 0; }
.card strong.small { font-size: 14px; word-break: break-all; }
.card span { color: var(--muted); }
.summary-list { margin: 0; padding-left: 18px; }
.summary-list li { margin: 10px 0; }
.quick-links { display: flex; flex-wrap: wrap; gap: 10px; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { background: var(--panel2); }
.table-wrap { overflow-x: auto; }
.preview { color: var(--muted); max-width: 520px; }
.filters-grid, .actions-grid, .upload-form, .mini-stack { display: grid; gap: 10px; }
.filters-grid { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
input, select, textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #0e1320;
  color: var(--text);
}
.flash {
  padding: 12px 14px;
  border-radius: 10px;
  margin-bottom: 14px;
  background: #173020;
  border: 1px solid #28593c;
}
.flash.err { background: #331919; border-color: #6a2a2a; }
.content-box {
  white-space: pre-wrap;
  background: #0d1117;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px;
  max-height: 70vh;
  overflow: auto;
}
.meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}
.pager { display: flex; gap: 10px; margin-top: 14px; }
details summary { list-style: none; }
@media (max-width: 900px) {
  .topbar { flex-direction: column; align-items: flex-start; }
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 999;
    background: #0b1220;
    padding: 10px 20px;
    border-bottom: 1px solid #1f2937;
}

.container {
    margin-top: 20px;
}

.status-pendente {
    background: #f39c12;
    color: #000;
    padding: 3px 8px;
    border-radius: 6px;
    font-weight: bold;
}

.status-aprovado {
    background: #2ecc71;
    color: #000;
    padding: 3px 8px;
    border-radius: 6px;
    font-weight: bold;
}

.status-recusado {
    background: #e74c3c;
    color: #fff;
    padding: 3px 8px;
    border-radius: 6px;
    font-weight: bold;
}

/* TEMA BRADA LIMPO - BRADESCO SUAVE */

:root {
  --bg: #080b14;
  --panel: #151b27;
  --panel2: #1a2640;
  --text: #f4f7ff;
  --muted: #b9c6e6;
  --line: #2e4168;
  --accent: #d71920;
}

body {
  background:
    radial-gradient(circle at top left, rgba(215,25,32,0.18), transparent 30%),
    radial-gradient(circle at top right, rgba(0,70,160,0.20), transparent 35%),
    #080b14 !important;
}

.topbar {
  background: linear-gradient(90deg, #07152b, #102a55, #71121d) !important;
  box-shadow: 0 0 18px rgba(215,25,32,0.18) !important;
}

.card,
.panel {
  background: rgba(21,27,39,0.96) !important;
  border: 1px solid rgba(105,132,190,0.35) !important;
  box-shadow: 0 0 14px rgba(0,70,160,0.12) !important;
}

nav a,
.button,
button,
input[type="submit"] {
  background: linear-gradient(135deg, #1e5ba8, #c91525) !important;
  color: #fff !important;
  border: 1px solid rgba(255,255,255,0.12) !important;
  box-shadow: 0 0 10px rgba(215,25,32,0.20) !important;
  font-weight: 700 !important;
}

nav a:hover,
.button:hover,
button:hover,
input[type="submit"]:hover {
  filter: brightness(1.12);
  box-shadow: 0 0 16px rgba(215,25,32,0.35) !important;
}

th {
  background: linear-gradient(90deg, #15233f, #21395f) !important;
  color: #fff !important;
}

input,
select,
textarea {
  background: #091326 !important;
  border: 1px solid #31548c !important;
  color: #fff !important;
}

.flash {
  background: rgba(18,60,37,0.95) !important;
  border-color: #2b8a55 !important;
}

.flash.err {
  background: rgba(80,18,25,0.95) !important;
  border-color: #d71920 !important;
}
.logo-area {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.logo-bradesco {
    height: 70px;
    width: auto;
    object-fit: contain;
}

.usuario-logado {
    margin-top: 8px;
    color: #ffffff;
    font-size: 18px;
}
