/* ====== Shared look & feel ====== */

.laiskuri-fx-table,
.laiskuri-fx-converter {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  color: #111827;
}

/* ====== Table (valuuttakurssit) ====== */

.laiskuri-fx-table {
  max-width: 640px;
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}

.laiskuri-fx-date {
  margin: 0 0 0.5rem 0;
  font-size: 13px;
  color: #4b5563;
}

.laiskuri-fx-table table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.5rem;
  background: #ffffff;
  border-radius: 10px;
  overflow: hidden;
}

.laiskuri-fx-table thead th {
  padding: 0.5rem 0.75rem;
  background: #1d4ed8;
  color: #f9fafb;
  text-align: left;
  font-weight: 600;
  font-size: 13px;
  border-bottom: 1px solid #1e40af;
}

.laiskuri-fx-table tbody td {
  padding: 0.4rem 0.75rem;
  border-bottom: 1px solid #e5e7eb;
  font-size: 13px;
}

.laiskuri-fx-table tbody tr:nth-child(even) td {
  background-color: #f3f4f6;
}

.laiskuri-fx-table tbody tr:hover td {
  background-color: #e5f0ff;
}

.laiskuri-fx-table td:first-child {
  font-weight: 500;
}

/* scroll hint on small screens */
.laiskuri-fx-table table {
  display: block;
  overflow-x: auto;
}

/* meta line */

.laiskuri-fx-meta {
  margin-top: 0.75rem;
  font-size: 12px;
  color: #6b7280;
}

.laiskuri-fx-meta a {
  color: #2563eb;
  text-decoration: none;
  font-weight: 600;
}

.laiskuri-fx-meta a:hover {
  text-decoration: underline;
}

/* ====== Converter (valuuttalaskuri) ====== */

.laiskuri-fx-converter {
  max-width: 420px;
  margin: 1.5rem 0;
  padding: 1rem 1.25rem 0.75rem;
  border-radius: 14px;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.laiskuri-fx-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 10px;
}

.laiskuri-fx-row label {
  font-weight: 500;
  color: #374151;
  font-size: 13px;
}

.laiskuri-fx-row input,
.laiskuri-fx-row select {
  padding: 7px 9px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  font-size: 14px;
  width: 100%;
  max-width: 100%;
  background-color: #ffffff;
  transition: border-color 0.12s ease, box-shadow 0.12s ease;
}

.laiskuri-fx-row input:focus,
.laiskuri-fx-row select:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.25);
}

.laiskuri-fx-row .lfx-result {
  padding: 7px 9px;
  background: #eff6ff;
  border-radius: 8px;
  border: 1px solid #bfdbfe;
  font-weight: 600;
  color: #1e3a8a;
}

/* Put amount / from / to in 2 columns on wider screens */

@media (min-width: 640px) {
  .laiskuri-fx-converter {
    max-width: 520px;
  }

  .laiskuri-fx-converter > .laiskuri-fx-row:nth-child(-n+4) {
    flex-direction: row;
    align-items: center;
  }

  .laiskuri-fx-converter > .laiskuri-fx-row:nth-child(-n+4) label {
    width: 40%;
    margin-bottom: 0;
  }

  .laiskuri-fx-converter > .laiskuri-fx-row:nth-child(-n+4) input,
  .laiskuri-fx-converter > .laiskuri-fx-row:nth-child(-n+4) select {
    width: 60%;
  }
}

.laiskuri-fx-converter .laiskuri-fx-meta {
  margin-top: 0.5rem;
  margin-bottom: 0.25rem;
}

/* ====== Single-currency card / inline ====== */

.laiskuri-fx-inline {
  font-size: 14px;
  color: #111827;
}

.laiskuri-fx-card {
  display: inline-block;
  min-width: 180px;
  margin: 0.5rem 0;
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.laiskuri-fx-card-code {
  font-weight: 700;
  font-size: 13px;
  color: #1f2937;
  margin-bottom: 0.25rem;
}

.laiskuri-fx-card-line {
  font-size: 13px;
  color: #374151;
}

.laiskuri-fx-card-date {
  margin-top: 0.35rem;
  font-size: 11px;
  color: #6b7280;
}
