:root {
  --bg: #0f1117;
  --surface: #1a1d27;
  --surface2: #22263a;
  --border: #2e3350;
  --accent: #4f6ef7;
  --accent2: #6ee7b7;
  --text: #e2e8f0;
  --text2: #94a3b8;
  --green: #22c55e;
  --danger: #f87171;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--bg); color: var(--text);
  font-family: 'Segoe UI', system-ui, sans-serif; height: 100vh; display: flex; flex-direction: column;
}

header {
  background: var(--surface); height: 60px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; padding: 0 20px; justify-content: space-between;
}

.split-container { flex: 1; display: flex; overflow: hidden; }

.pane { width: 50%; display: flex; flex-direction: column; overflow: hidden; }
.pane-left { border-right: 2px solid var(--border); }
.pane-title { padding: 12px 20px; background: var(--surface2); font-size: 13px; text-transform: uppercase; letter-spacing: 0.05em; font-weight: 700; color: #fff; display: flex; justify-content: space-between; align-items: center;}

.toolbar { padding: 10px 20px; background: var(--surface); border-bottom: 1px solid var(--border); display: flex; gap: 10px; align-items: center; }
.toolbar input { background: var(--surface2); border: 1px solid var(--border); border-radius: 5px; color: #fff; padding: 6px 12px; font-size: 13px; outline: none; flex: 1; }

.list-wrap { flex: 1; overflow-y: auto; padding: 10px; }

.nota-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 8px;
  padding: 12px 16px; margin-bottom: 8px; cursor: pointer; transition: transform 0.1s, border-color 0.2s;
  display: flex; align-items: center; justify-content: space-between;
}
.nota-card:hover { border-color: var(--accent); transform: translateX(2px); }
.nota-card.checked { border-color: var(--green); background: rgba(34,197,94,0.03); }

.nota-main { display: flex; flex-direction: column; gap: 3px; }
.nota-top { font-weight: 700; font-size: 14px; display: flex; gap: 10px; font-family: monospace; }
.nota-forn { font-size: 12px; color: var(--text2); max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nota-val { font-size: 13px; font-weight: 600; color: var(--accent2); }

.circle-seq { width: 26px; height: 26px; border-radius: 50%; background: var(--surface2); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: bold; color: var(--accent); }
.nota-card.checked .circle-seq { background: var(--green); color: #fff; border-color: var(--green); }

.btn-top { background: var(--accent); border: none; color: #fff; padding: 8px 16px; border-radius: 6px; font-weight: 600; cursor: pointer; font-size: 13px; display: inline-flex; align-items: center; gap: 5px; text-decoration: none; }
.btn-top:hover { opacity: 0.9; }
.btn-avulso { background: #22c55e; border: none; padding: 10px 18px; font-size: 13px; color: #fff; border-radius: 6px; cursor: pointer; position: relative; font-weight: 600; display: inline-flex; align-items: center; }
.btn-avulso:hover { background: #16a34a; }
.btn-avulso input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }

.input-data-ref { background: var(--surface2); border: 1px solid var(--border); color: #6ee7b7; padding: 8px 12px; font-size: 13px; font-weight: bold; border-radius: 6px; width: 130px; text-align: center; outline: none; }

.mode-badge { font-size: 11px; padding: 3px 8px; border-radius: 12px; font-weight: bold; background: rgba(248, 113, 113, 0.15); color: var(--danger); }
.mode-badge.ativo { background: rgba(52, 211, 153, 0.15); color: var(--green); }

.aviso-vazio { text-align: center; color: var(--text2); padding: 40px 20px; font-size: 14px; }