.ef-finance-launcher {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 80;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  padding: 12px 16px;
  background: linear-gradient(135deg, #0b6e76, #19c199);
  color: #ffffff;
  font: 700 14px/1.2 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
  cursor: pointer;
}

.ef-finance-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
  background: rgba(2, 10, 18, 0.62);
  backdrop-filter: blur(8px);
}

.ef-finance-overlay.is-open {
  display: flex;
  justify-content: flex-end;
}

.ef-finance-panel {
  width: min(1120px, 100%);
  height: 100%;
  overflow: auto;
  background: #f3f8f8;
  color: #061d25;
  box-shadow: -18px 0 60px rgba(0, 0, 0, 0.28);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.ef-finance-header {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 24px;
  background: #073c41;
  color: #ffffff;
}

.ef-finance-header small,
.ef-muted {
  color: #6c8790;
}

.ef-finance-header small {
  color: #a9d7d6;
}

.ef-finance-title {
  margin: 0;
  font-size: 22px;
}

.ef-finance-close {
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 12px;
  padding: 10px 13px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  cursor: pointer;
}

.ef-finance-tabs {
  display: flex;
  gap: 8px;
  padding: 16px 24px 0;
  overflow-x: auto;
}

.ef-finance-tab {
  border: 1px solid #c8dcde;
  border-radius: 999px;
  padding: 9px 14px;
  background: #ffffff;
  color: #073c41;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.ef-finance-tab.is-active {
  border-color: #0b6e76;
  background: #0b6e76;
  color: #ffffff;
}

.ef-finance-body {
  padding: 20px 24px 28px;
}

.ef-finance-view {
  display: none;
}

.ef-finance-view.is-active {
  display: block;
}

.ef-finance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}

.ef-finance-card,
.ef-finance-form,
.ef-finance-table-wrap {
  border: 1px solid #d3e3e5;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(5, 39, 46, 0.08);
}

.ef-finance-card {
  padding: 16px;
}

.ef-finance-card span {
  display: block;
  margin-bottom: 7px;
  color: #55727b;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.ef-finance-card strong {
  font-size: 25px;
}

.ef-finance-section {
  margin-top: 18px;
}

.ef-finance-section h3 {
  margin: 0 0 12px;
  font-size: 18px;
}

.ef-finance-two {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
}

.ef-finance-form {
  padding: 18px;
}

.ef-finance-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.ef-finance-form label {
  display: grid;
  gap: 6px;
  color: #3b5962;
  font-size: 12px;
  font-weight: 800;
}

.ef-finance-form input,
.ef-finance-form select,
.ef-finance-form textarea {
  width: 100%;
  border: 1px solid #c8dcde;
  border-radius: 12px;
  padding: 10px 12px;
  background: #f7fbfb;
  color: #061d25;
  font: 500 14px/1.35 inherit;
}

.ef-finance-form textarea {
  min-height: 84px;
  resize: vertical;
}

.ef-finance-full {
  grid-column: 1 / -1;
}

.ef-finance-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.ef-finance-btn {
  border: 0;
  border-radius: 12px;
  padding: 11px 14px;
  background: #073c41;
  color: #ffffff;
  font-weight: 800;
  cursor: pointer;
}

.ef-finance-btn.secondary {
  border: 1px solid #c8dcde;
  background: #ffffff;
  color: #073c41;
}

.ef-finance-btn.danger {
  background: #b42318;
}

.ef-finance-table-wrap {
  overflow: auto;
}

.ef-finance-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

.ef-finance-table th,
.ef-finance-table td {
  border-bottom: 1px solid #dbe8e9;
  padding: 12px;
  text-align: left;
  vertical-align: top;
  font-size: 13px;
}

.ef-finance-table th {
  background: #eef6f6;
  color: #36545c;
  font-size: 12px;
  text-transform: uppercase;
}

.ef-finance-table .amount {
  font-weight: 800;
  white-space: nowrap;
}

.ef-finance-table .income {
  color: #087a5f;
}

.ef-finance-table .expense {
  color: #b42318;
}

.ef-finance-list {
  display: grid;
  gap: 10px;
}

.ef-finance-rank {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid #d8e8e9;
  border-radius: 12px;
  padding: 11px 12px;
  background: #ffffff;
}

@media (max-width: 860px) {
  .ef-finance-grid,
  .ef-finance-two,
  .ef-finance-form-grid {
    grid-template-columns: 1fr;
  }

  .ef-finance-header {
    align-items: flex-start;
  }

  .ef-finance-launcher {
    right: 12px;
    bottom: 12px;
  }
}

@media print {
  .ef-finance-launcher,
  .ef-finance-overlay {
    display: none !important;
  }
}
