:root {
  --dnp-gold: #f5c556;
  --dnp-brown: #4d3824;
  --dnp-blue: #a2d0d4;
  --dnp-bg: #fffaf0;
  --dnp-white: #ffffff;
  --dnp-text: #4d3824;
  --dnp-muted: rgba(77, 56, 36, 0.72);
  --dnp-border: rgba(77, 56, 36, 0.14);
  --dnp-shadow: 0 24px 70px rgba(77, 56, 36, 0.16);
  --dnp-danger: #b94b4b;
  --dnp-success: #3d8f68;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", sans-serif;
  background:
    radial-gradient(circle at 10% 10%, rgba(245, 197, 86, 0.22), transparent 30%),
    radial-gradient(circle at 90% 70%, rgba(162, 208, 212, 0.30), transparent 34%),
    var(--dnp-bg);
  color: var(--dnp-text);
  min-height: 100vh;
}

a {
  text-decoration: none;
  color: inherit;
}

button,
input,
select,
textarea {
  font-family: inherit;
}

.dnp-fin-container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.dnp-fin-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 250, 240, 0.90);
  border-bottom: 1px solid rgba(77, 56, 36, 0.10);
  backdrop-filter: blur(18px);
}

.dnp-fin-header-content {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.dnp-fin-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dnp-fin-logo-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: var(--dnp-gold);
  color: var(--dnp-brown);
  font-weight: 900;
  font-size: 14px;
}

.dnp-fin-logo strong {
  display: block;
  font-size: 16px;
  font-weight: 900;
}

.dnp-fin-logo span {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--dnp-muted);
}

.dnp-fin-main {
  padding: 54px 0 80px;
}

.dnp-fin-hero {
  padding: 44px;
  border-radius: 36px;
  background:
    linear-gradient(135deg, rgba(77, 56, 36, 0.96), rgba(77, 56, 36, 0.86)),
    radial-gradient(circle at top right, rgba(245, 197, 86, 0.34), transparent 34%);
  color: white;
  box-shadow: var(--dnp-shadow);
}

.dnp-fin-label {
  display: inline-flex;
  width: fit-content;
  padding: 9px 15px;
  border-radius: 999px;
  background: rgba(245, 197, 86, 0.22);
  color: var(--dnp-gold);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.dnp-fin-hero h1 {
  max-width: 760px;
  margin-top: 18px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.02;
  letter-spacing: -0.055em;
  font-weight: 900;
}

.dnp-fin-hero p {
  max-width: 720px;
  margin-top: 18px;
  font-size: 16px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.76);
}

.dnp-fin-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 24px;
}

.dnp-fin-card {
  padding: 28px;
  border-radius: 28px;
  background: white;
  border: 1px solid var(--dnp-border);
  box-shadow: 0 18px 50px rgba(77, 56, 36, 0.08);
}

.dnp-fin-card span {
  display: block;
  margin-bottom: 10px;
  color: var(--dnp-muted);
  font-size: 13px;
  font-weight: 800;
}

.dnp-fin-card strong {
  display: block;
  font-size: 30px;
  letter-spacing: -0.04em;
  color: var(--dnp-brown);
}

.dnp-fin-card.highlight {
  background: var(--dnp-gold);
}

.dnp-fin-panel {
  margin-top: 24px;
  padding: 30px;
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--dnp-border);
  box-shadow: var(--dnp-shadow);
}

.dnp-fin-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.dnp-fin-panel-head h2 {
  font-size: 28px;
  letter-spacing: -0.04em;
  color: var(--dnp-brown);
}

.dnp-fin-panel-head p {
  margin-top: 6px;
  color: var(--dnp-muted);
  font-size: 14px;
}

.dnp-fin-btn {
  min-height: 48px;
  padding: 13px 20px;
  border: none;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  transition: 0.25s ease;
  white-space: nowrap;
}

.dnp-fin-btn:hover {
  transform: translateY(-2px);
}

.dnp-fin-btn-primary {
  background: var(--dnp-gold);
  color: var(--dnp-brown);
}

.dnp-fin-btn-dark {
  background: var(--dnp-brown);
  color: white;
}

.dnp-fin-btn-light {
  background: rgba(77, 56, 36, 0.08);
  color: var(--dnp-brown);
}

.dnp-fin-filters {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.9fr 0.9fr 0.9fr auto;
  gap: 14px;
  align-items: end;
  margin-bottom: 22px;
}

.dnp-fin-field {
  display: grid;
  gap: 8px;
}

.dnp-fin-field label {
  font-size: 12px;
  font-weight: 900;
  color: var(--dnp-brown);
}

.dnp-fin-field input,
.dnp-fin-field select,
.dnp-fin-field textarea {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--dnp-border);
  border-radius: 16px;
  background: white;
  color: var(--dnp-brown);
  outline: none;
  font-size: 14px;
}

.dnp-fin-field textarea {
  padding: 14px;
  resize: vertical;
}

.dnp-fin-field input:focus,
.dnp-fin-field select:focus,
.dnp-fin-field textarea:focus {
  border-color: rgba(245, 197, 86, 0.9);
  box-shadow: 0 0 0 4px rgba(245, 197, 86, 0.18);
}

.dnp-fin-clear {
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--dnp-border);
  border-radius: 16px;
  background: white;
  color: var(--dnp-brown);
  font-weight: 900;
  cursor: pointer;
}

.dnp-fin-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--dnp-border);
  border-radius: 24px;
  background: white;
}

.dnp-fin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 880px;
}

.dnp-fin-table th,
.dnp-fin-table td {
  padding: 17px 18px;
  border-bottom: 1px solid rgba(77, 56, 36, 0.10);
  text-align: left;
  font-size: 14px;
}

.dnp-fin-table th {
  background: rgba(245, 197, 86, 0.18);
  color: var(--dnp-brown);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.dnp-fin-table td {
  color: rgba(77, 56, 36, 0.82);
}

.dnp-fin-table tr:last-child td {
  border-bottom: none;
}

.dnp-fin-type {
  display: inline-flex;
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.dnp-fin-type.recebimento {
  background: rgba(61, 143, 104, 0.14);
  color: var(--dnp-success);
}

.dnp-fin-type.pagamento {
  background: rgba(185, 75, 75, 0.13);
  color: var(--dnp-danger);
}

.dnp-fin-value {
  font-weight: 900;
}

.dnp-fin-value.recebimento {
  color: var(--dnp-success);
}

.dnp-fin-value.pagamento {
  color: var(--dnp-danger);
}

.dnp-fin-actions {
  display: flex;
  gap: 8px;
}

.dnp-fin-action-btn {
  padding: 9px 12px;
  border: none;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.dnp-fin-edit {
  background: rgba(162, 208, 212, 0.45);
  color: var(--dnp-brown);
}

.dnp-fin-delete {
  background: rgba(185, 75, 75, 0.12);
  color: var(--dnp-danger);
}

.dnp-fin-empty {
  display: none;
  padding: 28px;
  text-align: center;
  color: var(--dnp-muted);
  font-weight: 800;
}

.dnp-fin-empty.active {
  display: block;
}

.dnp-fin-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 22px;
}

.dnp-fin-modal.active {
  display: flex;
}

.dnp-fin-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(25, 17, 10, 0.58);
  backdrop-filter: blur(10px);
}

.dnp-fin-modal-card {
  position: relative;
  z-index: 2;
  width: min(760px, 100%);
  max-height: calc(100vh - 44px);
  overflow-y: auto;
  padding: 30px;
  border-radius: 34px;
  background: var(--dnp-bg);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.28);
}

.dnp-fin-modal-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.dnp-fin-modal-head h3 {
  margin-top: 12px;
  font-size: 28px;
  letter-spacing: -0.04em;
  color: var(--dnp-brown);
}

.dnp-fin-close {
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 14px;
  background: white;
  color: var(--dnp-brown);
  font-size: 28px;
  cursor: pointer;
}

.dnp-fin-form {
  display: grid;
  gap: 18px;
}

.dnp-fin-form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.dnp-fin-radio-group {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.dnp-fin-radio {
  cursor: pointer;
}

.dnp-fin-radio input {
  display: none;
}

.dnp-fin-radio span {
  display: grid;
  place-items: center;
  min-height: 48px;
  border-radius: 16px;
  border: 1px solid var(--dnp-border);
  background: white;
  color: var(--dnp-brown);
  font-size: 13px;
  font-weight: 900;
}

.dnp-fin-radio input:checked + span {
  background: var(--dnp-gold);
  border-color: var(--dnp-gold);
}

.dnp-fin-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 8px;
}

@media (max-width: 980px) {
  .dnp-fin-filters {
    grid-template-columns: repeat(2, 1fr);
  }

  .dnp-fin-clear {
    grid-column: span 2;
  }
}

@media (max-width: 760px) {
  .dnp-fin-header-content {
    flex-direction: column;
    align-items: stretch;
    padding: 16px 0;
  }

  .dnp-fin-header-content .dnp-fin-btn {
    width: 100%;
  }

  .dnp-fin-cards {
    grid-template-columns: 1fr;
  }

  .dnp-fin-panel-head {
    flex-direction: column;
  }

  .dnp-fin-panel-head .dnp-fin-btn {
    width: 100%;
  }

  .dnp-fin-hero,
  .dnp-fin-panel,
  .dnp-fin-modal-card {
    padding: 24px;
    border-radius: 26px;
  }

  .dnp-fin-form-grid,
  .dnp-fin-radio-group,
  .dnp-fin-filters {
    grid-template-columns: 1fr;
  }

  .dnp-fin-clear {
    grid-column: span 1;
  }

  .dnp-fin-modal-actions {
    flex-direction: column-reverse;
  }

  .dnp-fin-modal-actions .dnp-fin-btn {
    width: 100%;
  }
}

@media (max-width: 520px) {
  .dnp-fin-container {
    width: min(100% - 28px, 1180px);
  }

  .dnp-fin-main {
    padding-top: 30px;
  }

  .dnp-fin-hero h1 {
    font-size: 34px;
  }

  .dnp-fin-card strong {
    font-size: 26px;
  }
}
.page-content {
  margin-left: var(--sidebar-width);
  padding: 28px;
  transition: margin-left 0.25s ease;
}

body.sidebar-collapsed .page-content {
  margin-left: var(--sidebar-collapsed);
}

@media (max-width: 900px) {
  .page-content {
    margin-left: 0;
    padding: 20px;
  }
}
.dnp-fin-hero-btn {
  margin-top: 26px;
}