.keuangan-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-family: 'Montserrat', sans-serif;
  margin-top: 1.5em;
  background-color: #1f2937;
  color: #f9fafb;
  box-shadow: 0 8px 20px rgba(0,0,0,0.7);
  border-radius: 30px;
  overflow: hidden;
  table-layout: fixed;
}

.keuangan-table thead tr {
  background-color: #2563eb;
  color: #000000;
  text-align: center;
  font-weight: 700;
  font-size: 1.1em;
  position: sticky;
  top: 0;
  z-index: 2;
  box-shadow: 0 3px 6px rgba(0,0,0,0.4);
}

.keuangan-table th,
.keuangan-table td {
  padding: 14px 20px;
  border-bottom: 1px solid #374151;
  text-align: center;
  vertical-align: middle;
  transition: background-color 0.3s ease, color 0.3s ease;
  word-wrap: break-word;
  border-radius: 20px;
  white-space: normal;
  word-break: break-word;
}

.keuangan-table tbody tr:nth-child(even) {
  background-color: #273549;
}

.keuangan-table tbody tr:hover {
  background-color: #3b82f6;
  color: #ffffff;
  cursor: pointer;
}

.keuangan-table td:first-child {
  text-align: left;
  font-weight: 700;
  color: #f9fafb;
  padding-left: 30px;
  text-shadow: 0 0 5px rgba(0,0,0,0.7);
  min-width: 250px;
  max-width: 350px;
  word-wrap: break-word;
}

.keuangan-table tbody tr.highlight {
  background-color: #fbbf24;
  font-weight: 700;
  color: #1f2937;
  box-shadow: 0 0 10px #fbbf24;
}

.keuangan-table tbody tr.highlight td {
  border-bottom: none;
}

.keuangan-table tbody tr:last-child {
  font-weight: 700;
  background: linear-gradient(90deg, #f59e0b, #d97706);
  color: #1f2937;
  box-shadow: 0 0 15px #d97706;
}

.keuangan-table tbody tr:last-child td {
  border-bottom: none;
}

.checkmark {
  color: #10b981;
  font-weight: bold;
  font-size: 1.5em;
  text-shadow: 0 0 5px #10b981;
}

/* Responsive styles for mobile */
/* Mobile specific styles */
@media only screen and (max-width: 768px) {
  .keuangan-table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Montserrat', sans-serif;
    background-color: #1f2937;
    color: #f9fafb;
    box-shadow: none;
    border-radius: 0;
    overflow-x: scroll;
    display: block;
  }
  .keuangan-table thead {
    display: none;
  }
  .keuangan-table tbody tr {
    display: flex;
    flex-direction: column;
    background-color: #273549;
    margin-bottom: 1.5rem;
    border-radius: 15px;
    padding: 15px 12px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  }
  .keuangan-table tbody tr.highlight {
    background-color: #fbbf24;
    color: #1f2937;
    box-shadow: 0 0 10px #fbbf24;
  }
  .keuangan-table tbody tr:last-child {
    background: linear-gradient(90deg, #f59e0b, #d97706);
    color: #1f2937;
    box-shadow: 0 0 15px #d97706;
  }
  .keuangan-table tbody tr td {
    display: flex;
    justify-content: space-between;
    padding: 12px 14px;
    border-bottom: 1px solid #374151;
    text-align: left;
    position: relative;
    gap: 10px;
  }
  .keuangan-table tbody tr td:last-child {
    border-bottom: none;
  }
  .keuangan-table tbody tr td:before {
    content: attr(data-label);
    font-weight: 700;
    color: #f9fafb;
    text-shadow: 0 0 5px rgba(0,0,0,0.7);
    flex: 1 1 50%;
  }
  .keuangan-table tbody tr td:before[data-label="Keuntungan"] {
    background-color: #2563eb;
    border-radius: 10px;
    padding: 4px 8px;
    margin-right: 10px;
  }
  .checkmark {
    font-size: 1.5em;
    color: #10b981;
    text-shadow: 0 0 5px #10b981;
  }
}
