/* Minimal UI */
#wpnk-app {
  max-width: 820px;
  margin: 1rem auto;
  font-family: inherit !important;
}

#wpnk-app details {
  display: none !important;
}

.wpnk-form {
  display: grid;
  gap: 1rem;
  background: #fff;
  padding: 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
}

.wpnk-field,
.wpnk-fieldset {
  display: grid;
  gap: 0.5rem;
}

.wpnk-field label {
  font-weight: 700 !important;
}

/* Allow absolute-positioned dropdowns within fields */
.wpnk-field {
  position: relative;
}

.wpnk-fieldset legend {
  padding: .5rem .8rem .5rem !important;
  font-weight: 700 !important;
}

#wpnk-amount-label {
  font-weight: 700 !important;
}

.uzdrzavani label.wpnk-inline:last-of-type {
  white-space: nowrap;
}

.wpnk-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-right: 1rem;
}

.wpnk-btn[type="submit"] {
  border: 1px solid #004080 !important;
  background-color: #004080 !important;
  color: #fff !important;
}

.wpnk-btn[type="submit"]:focus,
.wpnk-btn[type="submit"]:hover,
.wpnk-btn button:focus,
.wpnk-btn button:hover {
  background-color: #0059b3 !important;
  border: 1px solid #0059b3 !important;
}

.wpnk-btn[type="button"] {
  border: 1px solid #004080 !important;
  background-color: #004080 !important;
  color: #fff !important;
}

.wpnk-btn[type="button"]:focus,
.wpnk-btn[type="button"]:hover {
  background-color: #0059b3 !important;
  border: 1px solid #0059b3 !important;
}

.wpnk-result {
  margin-top: 1rem;
  background: #fafafa;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 1rem;
}

.wpnk-actions {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 0.5rem;
}

.wpnk-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
}

.wpnk-table tr:nth-child(even) {
  background: #fafafa;
}

.wpnk-table td {
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid #eee;
}

.wpnk-table td:first-child {
  width: 65%;
}

.wpnk-table td:last-child {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.wpnk-disclaimer {
  font-size: 0.9rem;
  color: #6b7280;
  margin-top: 0.5rem;
}

/* Autocomplete (mobile/touch polyfill) */
.wpnk-ac[hidden] {
  display: none !important;
}

.wpnk-ac {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 2px);
  z-index: 1000;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.wpnk-ac-item {
  padding: 0.5rem 0.75rem;
  cursor: pointer;
}

.wpnk-ac-item:hover,
.wpnk-ac-item.is-active {
  background: #f3f4f6;
}


@media print {
  body {
    background: #fff;
  }

  #wpnk-app .wpnk-form,
  #wpnk-app .wpnk-actions,
  #wpnk-app details {
    display: none !important;
  }

  #wpnk-result {
    border: none;
    background: #fff;
  }
}