:root {
  --cielo-blue: #0072CE;
  --cielo-blue-hover: #00569e;
  --cielo-blue-light: #E6F1FA;
  --text-dark: #333333;
  --text-gray: #666666;
  --bg-light: #F8FAFC;
  --border-color: #E2E8F0;
  --white: #FFFFFF;
  --success: #10B981;
  --error: #EF4444;
}

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

body {
  font-family: 'Montserrat', sans-serif;
  background-color: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.5;
}

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

/* HEADER */
.cielo-header {
  background-color: var(--white);
  padding: 12px 0;
  border-bottom: 1px solid var(--border-color);
}

.container-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  height: 32px;
}

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

.nav-link {
  color: var(--cielo-blue);
  text-decoration: none;
  font-size: 14px;
}

.nav-link-block {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--cielo-blue);
    text-decoration: none;
    font-size: 14px;
}

.nav-link-block svg {
    width: 20px;
    height: 20px;
}

.nav-divider {
  width: 1px;
  height: 24px;
  background-color: var(--border-color);
}

.notification-badge {
  position: relative;
  color: var(--cielo-blue);
}

.notification-badge svg {
  width: 20px;
  height: 20px;
}

.badge-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background-color: var(--cielo-blue);
  color: white;
  font-size: 10px;
  padding: 2px 4px;
  border-radius: 10px;
  border: 2px solid white;
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.profile-icon {
  width: 32px;
  height: 32px;
  border: 1px solid var(--cielo-blue);
  border-radius: 50%;
  padding: 6px;
  color: var(--cielo-blue);
}

.user-name {
  font-size: 14px;
  color: var(--cielo-blue);
}

.chevron {
  width: 16px;
  height: 16px;
  color: var(--cielo-blue);
}

/* MAIN NAV */
.main-nav {
  background-color: var(--white);
  border-bottom: 1px solid var(--border-color);
}

.nav-menu {
  display: flex;
  list-style: none;
}

.nav-item {
  padding: 16px 20px;
}

.nav-item a {
  text-decoration: none;
  color: var(--text-gray);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.nav-item.active {
  border-bottom: 3px solid var(--cielo-blue);
}

.nav-item.active a {
  color: var(--text-dark);
}

/* CONTENT */
.page-content {
  padding: 32px 0;
}

.page-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--cielo-blue);
  margin-bottom: 24px;
}

/* SUMMARY CARDS */
.summary-container {
  background: #FFFFFF;
  border: 1px solid #D1D9E2;
  border-radius: 8px;
  display: flex;
  margin-bottom: 32px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.summary-section {
  flex: 1;
  padding: 20px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.summary-divider {
  width: 1px;
  background-color: #D1D9E2;
  height: 60px;
  align-self: center;
}

.card-info {
  display: flex;
  flex-direction: column;
}

.card-label {
  font-size: 11px;
  color: #888888;
  margin-bottom: 2px;
}

.card-title {
  font-size: 18px;
  font-weight: 700;
  color: #333;
}

.card-value {
  font-size: 24px;
  font-weight: 700;
  color: #0072CE;
}

.summary-right-group {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* BUTTONS */
.btn {
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
}

.btn-outline-blue {
  background: transparent;
  border: 1px solid var(--cielo-blue);
  color: var(--cielo-blue);
}

.btn-blue {
  background: var(--cielo-blue);
  color: white;
}

.btn-blue:hover {
  background: var(--cielo-blue-hover);
}

/* TABS */
.tabs-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 24px;
}

.tabs-container {
  display: flex;
}

.tab-item {
  background: transparent;
  border: none;
  padding: 12px 24px;
  font-size: 14px;
  color: var(--text-gray);
  cursor: pointer;
  position: relative;
}

.tab-item.active {
  color: var(--cielo-blue);
  font-weight: 600;
}

.tab-item.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--cielo-blue);
}

/* FILTERS */
.filters-bar {
  margin-bottom: 24px;
}

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

.filter-group label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-gray);
}

.filter-select {
  background: white;
  border: 1px solid #D1D9E2;
  border-radius: 6px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
}

.filter-select input {
  border: none;
  outline: none;
  background: transparent;
  font-size: 13px;
  color: #333;
  width: 100%;
}

.filter-select select {
  border: none;
  outline: none;
  background: transparent;
  font-size: 13px;
  color: #333;
  appearance: none;
  padding-right: 20px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right center;
  width: 100%;
  cursor: pointer;
}

/* ACCOUNTS */
.accounts-section {
  margin-bottom: 32px;
}

.section-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 16px;
}

.accounts-slider {
  display: flex;
  align-items: center;
  gap: 12px;
}

.slider-arrow {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cielo-blue);
  cursor: pointer;
}

.account-card {
  flex: 1;
  background: white;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  padding: 16px;
  display: flex;
  gap: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.account-card.bb {
    border-color: #FFE680;
    background-color: #FFFDF0;
}

.bank-logo {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bank-logo img {
  max-width: 100%;
  border-radius: 4px;
}

.brand-icon {
    width: 24px;
    height: 16px;
    object-fit: contain;
    vertical-align: middle;
}

.account-info .bank-name {
  font-size: 11px;
  color: #888;
  font-weight: 500;
}

.account-info .bank-details {
  font-size: 11px;
  color: #888;
  margin-bottom: 8px;
}

.deposit-info {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
}

.deposit-info .info-group {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.deposit-info .label {
  font-size: 10px;
  color: #888;
}

.deposit-info .amount {
  font-size: 13px;
  font-weight: 700;
  color: #333;
}

.link-detail {
  font-size: 10px;
  color: var(--cielo-blue);
  text-decoration: underline;
  width: 100%;
  text-align: right;
  margin-top: 4px;
}

.total-deposit-card {
  flex: 0.8;
  padding: 16px;
  text-align: right;
}

.total-deposit-card .label {
  font-size: 14px;
  font-weight: 600;
  color: var(--cielo-blue);
  margin-bottom: 4px;
}

.total-deposit-card .amount {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.total-deposit-card svg {
    width: 20px;
}

/* TABLE AREA */
.table-description {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-color);
}

.company-badge {
    text-align: right;
    font-size: 12px;
}

.company-badge span:first-child {
    display: block;
    color: var(--cielo-blue);
    font-weight: 700;
}

.table-container {
  background: white;
  border-radius: 8px;
  overflow-x: auto;
}

.cielo-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.cielo-table th {
  text-align: left;
  padding: 16px;
  color: var(--text-gray);
  font-weight: 500;
  border-bottom: 1px solid var(--border-color);
}

.cielo-table td {
  padding: 16px;
  border-bottom: 1px solid var(--border-color);
}

.text-positive { color: #22C55E; }
.text-negative { color: #EF4444; }

.status-pago {
    color: #22C55E;
    font-weight: 600;
}

/* FOOTER */
.table-footer {
  margin-top: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 8px;
}

.per-page {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 12px;
  color: var(--text-gray);
}

.per-page select {
  padding: 4px 8px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
}

.pagination {
  display: flex;
  gap: 4px;
}

.page-num {
  width: 32px;
  height: 32px;
  border: 1px solid var(--border-color);
  background: white;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 12px;
  color: var(--text-gray);
}

.page-num.active {
  background: #E8F0FE;
  border-color: var(--cielo-blue);
  color: var(--cielo-blue);
  font-weight: 700;
}

.page-arrow {
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--cielo-blue);
}

.page-arrow svg {
  width: 16px;
  height: 16px;
}
