/* Chart of Accounts Viewer Styles */

/* E-Money Provider Core Flows Styling */
.core-flow-row {
  background-color: rgba(255, 249, 219, 0.7) !important;
  border-left: 4px solid #fd7e14;
}

.core-flow-row:hover {
  background-color: rgba(255, 249, 219, 1) !important;
  box-shadow: 0 0 8px rgba(253, 126, 20, 0.3);
}

#emoney-transactions strong {
  color: #0d6efd;
}

body {
  background-color: #f8f9fa;
  color: #333;
}

.stats-cards .card {
  border-radius: 8px;
  border-left: 4px solid #ddd;
  transition: transform 0.2s;
  margin-bottom: 15px;
}

.stats-cards .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.active-card {
  border-left-color: #28a745 !important;
}

.passive-card {
  border-left-color: #0d6efd !important;
}

.both-card {
  border-left-color: #6f42c1 !important;
}

.cnb-card {
  border-left-color: #fd7e14 !important;
}

.text-purple {
  color: #6f42c1;
}

.bg-purple {
  background-color: #6f42c1 !important;
  color: white;
}

.text-orange {
  color: #fd7e14;
}

.account-item {
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 15px;
  background-color: #fff;
  border-left: 4px solid #ddd;
}

.account-item.active {
  border-left-color: #28a745;
}

.account-item.passive {
  border-left-color: #0d6efd;
}

.account-item.both {
  border-left-color: #6f42c1;
}

.account-item .code {
  font-weight: 600;
  padding: 2px 8px;
  background-color: #f1f1f1;
  border-radius: 4px;
  margin-right: 8px;
}

.account-item h4 {
  margin-bottom: 10px;
}

.account-item .type-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
  margin-left: 10px;
}

.account-item .type-badge.active {
  background-color: rgba(40, 167, 69, 0.2);
  color: #28a745;
}

.account-item .type-badge.passive {
  background-color: rgba(13, 110, 253, 0.2);
  color: #0d6efd;
}

.account-item .type-badge.both {
  background-color: rgba(111, 66, 193, 0.2);
  color: #6f42c1;
}

.account-item .cnb-badge {
  background-color: rgba(253, 126, 20, 0.2);
  color: #fd7e14;
}

.search-match {
  background-color: yellow;
}

.section-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #ddd;
}

.class-section {
  margin-bottom: 2rem;
}

.class-section h3 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.account-list {
  margin-bottom: 1.5rem;
}

.emoney-account {
  background-color: #fff;
  padding: 12px 15px;
  margin-bottom: 12px;
  border-radius: 6px;
  display: grid;
  grid-template-columns: 100px 1fr 1fr;
  align-items: center;
  gap: 15px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.emoney-account:hover {
  transform: translateY(-2px);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
  cursor: pointer;
}

.emoney-account.active-bg {
  background-color: rgba(40, 167, 69, 0.1);
}

.emoney-account.passive-bg {
  background-color: rgba(220, 53, 69, 0.1);
}

.emoney-account.both-bg {
  background-color: rgba(111, 66, 193, 0.1);
}

.type-tag {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-weight: bold;
  font-size: 0.75rem;
  flex-shrink: 0;
}

.active-tag {
  background-color: #28a745;
  color: white;
}

.passive-tag {
  background-color: #dc3545;
  color: white;
}

.both-tag {
  background-color: #6f42c1;
  color: white;
}

.account-code {
  background-color: #f8f9fa;
  padding: 6px 10px;
  border-radius: 6px;
  font-weight: 600;
  min-width: 60px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #e9ecef;
  justify-content: space-between;
}

.account-code.active {
  border-left: 3px solid #28a745;
  padding-left: 8px;
  color: #28a745;
  background-color: rgba(40, 167, 69, 0.05);
}

.account-code.passive {
  border-left: 3px solid #dc3545;
  padding-left: 8px;
  color: #dc3545;
  background-color: rgba(220, 53, 69, 0.05);
}

.account-code.both {
  border-left: 3px solid #6f42c1;
  padding-left: 8px;
  color: #6f42c1;
  background-color: rgba(111, 66, 193, 0.05);
}

.account-name {
  font-weight: 600;
  margin-right: 10px;
  font-size: 1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.czech-name {
  font-size: 0.8rem;
  color: #6c757d;
  margin-top: 2px;
  font-style: italic;
}

.account-name-in-table {
  margin-top: 5px;
  line-height: 1.2;
}

.account-desc {
  color: #6c757d;
  font-size: 0.9rem;
  grid-column: 3;
  line-height: 1.4;
}

#emoney-transactions td {
  vertical-align: middle;
  padding: 12px 15px;
}

#emoney-transactions .account-code {
  width: fit-content;
}

.emoney-section {
  margin-bottom: 30px;
}

.emoney-section h4 {
  margin-bottom: 15px;
  color: #495057;
  border-bottom: 1px solid #e9ecef;
  padding-bottom: 8px;
}

.table-responsive {
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  margin-top: 15px;
}

.table {
  margin-bottom: 0;
}

/* Improved spacing for search results and modal content */
/* Transaction group header styles */
.transaction-group-header {
  background-color: #e9ecef;
  font-weight: bold;
}

.modal-body .account-details p {
  margin-bottom: 12px;
  line-height: 1.5;
}

.search-result {
  padding: 12px 15px;
  transition: background-color 0.15s ease;
}

.search-result:hover {
  background-color: rgba(0, 123, 255, 0.05);
}

#accountModal .modal-body {
  padding: 20px;
}

#accountModal .account-detail-header {
  margin-bottom: 20px;
}

#accountModal .account-detail-header .code {
  font-size: 1.2rem;
  font-weight: 600;
  background-color: #f1f1f1;
  padding: 3px 10px;
  border-radius: 5px;
  margin-right: 10px;
}

#accountModal .account-detail-header .type {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 5px;
  margin-left: 10px;
}

#accountModal .account-detail-header .type.active {
  background-color: rgba(40, 167, 69, 0.2);
  color: #28a745;
}

#accountModal .account-detail-header .type.passive {
  background-color: rgba(13, 110, 253, 0.2);
  color: #0d6efd;
}

#accountModal .account-detail-header .type.both {
  background-color: rgba(111, 66, 193, 0.2);
  color: #6f42c1;
}

.filter-info {
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .account-desc {
    display: none;
  }
}
