.ethicax-wallet-box,
.ethicax-wallet-box * {
  box-sizing: border-box;
}

.ethicax-wallet-box {
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: #111827;
}

.ethicax-wallet-title {
  margin: 0 0 10px 0;
  font-size: 28px;
  line-height: 1.2;
  font-weight: 900;
}

.ethicax-mini {
  font-size: 13px;
  line-height: 1.45;
  color: #6b7280;
}

.ethicax-panel {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 22px;
  padding: 16px;
  margin-top: 14px;
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.05);
}

.ethicax-row {
  margin-bottom: 14px;
}

.ethicax-row label {
  display: block;
  font-weight: 900;
  margin-bottom: 7px;
  color: #111827;
}

.ethicax-input,
.ethicax-wallet-box input[type="text"],
.ethicax-wallet-box input[type="number"],
.ethicax-wallet-box input[type="date"],
.ethicax-wallet-box select,
.ethicax-wallet-box textarea {
  width: 100%;
  display: block;
  border: 1px solid #d1d5db;
  background: #fff;
  border-radius: 18px;
  padding: 14px 16px;
  min-height: 52px;
  outline: none;
  font-size: 16px;
  color: #111827;
  box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}

.ethicax-wallet-box textarea {
  min-height: 120px;
  resize: vertical;
}

.ethicax-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.ethicax-actions-vertical {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ethicax-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.ethicax-inline input {
  flex: 1 1 180px;
}

.ethicax-btn,
.ethicax-wallet-box button,
.ethicax-wallet-box a.ethicax-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 16px;
  border: 1px solid #d1d5db;
  background: #fff;
  color: #111827;
  text-decoration: none;
  font-weight: 900;
  padding: 10px 16px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.04);
}

.ethicax-btn:hover {
  filter: brightness(0.98);
}

.ethicax-btn-primary {
  background: #1f6fb2 !important;
  color: #fff !important;
  border-color: #1f6fb2 !important;
}

.ethicax-btn-ok {
  background: #0f7a52 !important;
  color: #fff !important;
  border-color: #0f7a52 !important;
}

.ethicax-btn-danger {
  background: #c81f1f !important;
  color: #fff !important;
  border-color: #c81f1f !important;
}

.ethicax-btn-ghost {
  background: #f8fafc !important;
  color: #111827 !important;
}

.ethicax-note,
.ethicax-ok,
.ethicax-err {
  border-radius: 18px;
  padding: 16px;
  border: 1px solid #e5e7eb;
  line-height: 1.5;
}

.ethicax-note {
  background: #fff7ed;
  border-color: #f3d1a8;
  color: #9a3412;
}

.ethicax-ok {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #065f46;
}

.ethicax-err {
  background: #fef2f2;
  border-color: #fecaca;
  color: #991b1b;
}

.ethicax-code {
  display: inline-block;
  font-weight: 900;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  padding: 4px 10px;
}

.ethicax-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 900;
  border: 1px solid transparent;
  white-space: nowrap;
}

.ethicax-badge-submitted {
  background: #edf4ff;
  color: #1e3a8a;
  border-color: #bfdbfe;
}

.ethicax-badge-processing {
  background: #f9fafb;
  color: #111827;
  border-color: #d1d5db;
}

.ethicax-badge-completed {
  background: #065f46;
  color: #fff;
}

.ethicax-badge-rejected {
  background: #fee2e2;
  color: #991b1b;
  border-color: #fecaca;
}

.ethicax-badge-trashed {
  background: #f3f4f6;
  color: #4b5563;
  border-color: #d1d5db;
}

.ethicax-table-wrap {
  width: 100%;
  overflow: auto;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  margin-top: 10px;
}

.ethicax-table {
  width: 100%;
  min-width: 940px;
  border-collapse: collapse;
  background: #fff;
}

.ethicax-table th,
.ethicax-table td {
  border: 1px solid #e5e7eb;
  padding: 12px 10px;
  vertical-align: top;
  text-align: left;
}

.ethicax-table th {
  background: #f8fafc;
  font-weight: 900;
  color: #111827;
}

.ethicax-emma-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 16px;
  margin-top: 14px;
}

.ethicax-emma-sidebar,
.ethicax-emma-main {
  min-width: 0;
}

.ethicax-emma-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.ethicax-emma-qr-flex {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 16px;
  align-items: start;
  margin-top: 12px;
}

.ethicax-emma-qr-preview {
  text-align: center;
}

.ethicax-emma-qr-merchant-name {
  font-weight: 900;
  margin-bottom: 10px;
}

.ethicax-emma-qr-image {
  width: 100%;
  max-width: 260px;
  height: auto;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  background: #fff;
}

.ethicax-simple-row {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 10px;
  margin-bottom: 10px;
}

@media (max-width: 900px) {
  .ethicax-emma-layout {
    grid-template-columns: 1fr;
  }

  .ethicax-emma-qr-flex {
    grid-template-columns: 1fr;
  }

  .ethicax-simple-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .ethicax-wallet-box {
    padding: 10px;
  }

  .ethicax-wallet-title {
    font-size: 22px;
  }

  .ethicax-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .ethicax-btn,
  .ethicax-wallet-box button,
  .ethicax-wallet-box a.ethicax-btn {
    width: 100%;
  }
}

.ethicax-simple-json-wrap {
  margin-top: 6px;
}

.ethicax-simple-json-wrap > div:first-child {
  margin-bottom: 4px;
}

.ethicax-wallet-head .ethicax-actions {
  margin-top: 0;
}

.ethicax-row > textarea[aria-hidden="true"] {
  display: none !important;
}