@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@300;400;500;600&family=Source+Serif+4:wght@400;600&display=swap');

:root {
  --bg: #f8f8f6;
  --card: #ffffff;
  --ink: #111111;
  --muted: #5a5a5a;
  --line: #e3e3e0;
  --accent: #111111;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'IBM Plex Sans', 'Segoe UI', sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at top, #ffffff 0%, #f3f3f0 55%, #ececea 100%);
  min-height: 100vh;
}

header {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 24px 32px 8px;
  text-align: center;
}

.brand {
  font-family: 'IBM Plex Sans', 'Segoe UI', sans-serif;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.6px;
}

.container {
  max-width: 1100px;
  margin: 0 auto 48px;
  padding: 0 24px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.nav-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 24px;
  border-bottom: 2px solid var(--line);
}

.nav-tabs a {
  flex: 1 1 220px;
  text-decoration: none;
  color: var(--ink);
  border: 1px solid transparent;
  border-bottom: none;
  border-radius: 5px 5px 0 0;
  padding: 10px 16px;
  font-weight: 500;
  background: #f5f5f2;
  text-align: center;
}

.nav-tabs a.active {
  background: #F85E3C;
  color: #fff;
  border-color: #F85E3C;
}

form {
  display: grid;
  gap: 16px;
}

label {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

input, select, textarea {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  font-size: 15px;
  width: 100%;
}

button {
  padding: 12px 16px;
  border-radius: 12px;
  border: none;
  background: #F85E3C;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

button.secondary {
  background: transparent;
  color: #F85E3C;
  border: 1px solid #F85E3C;
}

.table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
  font-size: 14px;
}

.table th,
.table td {
  border-bottom: 1px solid var(--line);
  padding: 10px 8px;
  text-align: left;
}

.table th {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.notice {
  background: #fff8e6;
  border: 1px solid #f1e3b4;
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 14px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: #111111;
  color: #ffffff;
  font-weight: 600;
  box-shadow: var(--shadow);
}

.extrato-head,
.pane-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 2px solid #000000;
  padding-bottom: 16px;
  margin-bottom: 16px;
}

.extrato-search {
  margin-bottom: 16px;
}

.extrato-search form {
  display: flex;
  gap: 12px;
  align-items: center;
}

.extrato-info {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 1px solid #000000;
  padding-bottom: 16px;
  margin-bottom: 24px;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.summary-card {
  border: 1px solid #000000;
  border-radius: 5px;
  padding: 16px;
  text-align: center;
}

.summary-card strong {
  display: block;
  font-size: 22px;
  margin-top: 6px;
}

.summary-card--saldo {
  color: #ffffff;
  border-color: transparent;
}

.summary-card--saldo.is-positive {
  background: #4daf50;
  border-color: #4daf50;
}

.summary-card--saldo.is-negative {
  background: #f39c12;
  border-color: #f39c12;
}

.valor-debito {
  color: #c0392b;
  font-weight: 600;
}

.valor-credito {
  color: #1e7f43;
  font-weight: 600;
}

.extrato-actions {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

.login {
  max-width: 420px;
  margin: 80px auto;
}

.flex {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

.small {
  font-size: 12px;
  color: var(--muted);
}

.header-meta {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 14px;
  background: #ffffff;
}

.header-meta a {
  color: #F85E3C;
  text-decoration: none;
  font-weight: 600;
}

@media (max-width: 720px) {
  header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .table thead {
    display: none;
  }

  .table,
  .table tbody,
  .table tr,
  .table td {
    display: block;
    width: 100%;
  }

  .table tr {
    border: 1px solid var(--line);
    border-radius: 5px;
    padding: 8px 12px;
    margin-bottom: 12px;
  }

  .table td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    border: none;
    padding: 8px 4px;
  }

  .table td::before {
    content: attr(data-label);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    flex: 0 0 45%;
  }
}
