/* =========================
   QLD Water Licence
   ========================= */

.water_lic {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

/* =========================
   Panels
   ========================= */

.water_lic__panel {
  background: #fafafa;
  border: 1px solid #e2e2e2;
  border-radius: 10px;
  padding: 16px;
  margin: 12px 0;
}

.water_lic__panel h4 {
  margin: 0 0 14px;
  font-size: 22px;
  font-weight: 600;
  color: #666;
  line-height: 1.45;
}

/* Result panel modifier */
.water_lic__panel--results {
  background: #fafafa;
}

.water-lic__status {
  font-size: 14px;
  padding-left: 20px;
}

/* =========================
   Info / breakdown
   ========================= */

.water-lic__status {
  font-size: 13px;
  color: #666;
}

.dem-visual-info {
  margin-bottom: 2px;
}

.water-breakdown {
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  background: #fafafa;
  padding: 2px 5px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.water-breakdown > summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  font-size: 13px;
  padding: 1px 4px;
  align-items: centre;
  position: relative;
}

.water-breakdown > summary::-webkit-details-marker {
  display: none;
}

.water-breakdown > summary::after {
  content: "▾";
  font-size: 20px;
  position: absolute;
  right: 6px;
  transform: rotate(0deg) translateY(-6px);
  transition: transform 120ms ease;
}

.water-breakdown[open] > summary::after {
  transform: rotate(180deg) translateY(3px);
  color: #f28c28;
}
/* Open */
.water-breakdown[open] {
  background: #fff;
  border: 1px solid #f28c28;
}

.water-breakdown[open] > summary {
  font-weight: 700;
}

/* Hover / focus */
.water-breakdown > summary:hover {
  opacity: 0.95;
  color: #f28c28;
}

/* Hover / focus */
.water-breakdown:hover {
  background: #ffffff;
  border: 1px solid #f28c28;
}

.water_lic__hint {
  font-size: 13px;
  color: #666;
  margin: 6px 0 10px;
}

.water-lic-block {
  font-size: 13px;
  color: #666;
}

.water-lic__meta {
  font-size: 13px;
  color: #666;
  padding: 2px 10px;
}

.water-lic__admin {
  font-size: 13px;
  color: #666;
  padding-left: 10px;
  padding-top: 10px;
}

.water-lic__lots {
  font-size: 13px;
  color: #666;
  padding: 16px 8px;
}

/* =========================
   Fields & inputs
   ========================= */

.water-field {
  margin-bottom: 14px;
}

.lic-label {
  display: block;
  font-size: 13px;
  margin-bottom: 4px;
  color: #333;
}

.lic-search {
  display: flex;
  align-items: stretch;
  flex-direction: row;
  gap: 15px;
}

.lic-filter-mod {
  display: flexbox;
  flex-direction: row;
  padding: 15px 5px;
}

.lic-filter-check {
  padding: 5px;
}

.lic-search-module {
  display: flex;
  align-items: stretch;
  flex-direction: column;
}

.water_lic input[type="number"],
.water_lic input[type="text"] {
  width: 100%;
  padding: 8px 10px;
  font-size: 14px;
  font-weight: 500;
  color: #333;
  background: #fff;
  border: 1px solid #cfcfcf;
  border-radius: 8px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.water_lic input::placeholder {
  color: #b8b8b8;
}

.water_lic input:focus {
  border-color: #f28c28;
  box-shadow: 0 0 0 2px rgba(242, 140, 40, 0.15);
}

#lot-search {
  margin-right: 10px;
}

.lic-help {
  font-size: 12px;
  color: #666;
  margin-left: 2px;
  margin-top: 4px;
}

/* Thin grooved divider */
.lic-hr {
  border: 0;
  height: 1px;
  margin: 4px 0;
  background: linear-gradient(to bottom, #d9d9d9, #ffffff);
  box-shadow: 0 1px 0 #cfcfcf inset;
  opacity: 0.9;
}
/* =========================
   Buttons
   ========================= */

.dem-button {
  font-size: 12px;
  border-radius: 6px;
  border: 1px solid #f48424;
  background: #f48424;
  color: #fff;
  font-weight: 700;
  text-transform: uppercase;
  padding: 6px 14px;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.dem-button:hover {
  background: #fff;
  color: #f48424;
}

.dem-button--secondary {
  background: #ffffff;
  color: #f48424;
}

.dem-button--secondary:hover {
  background: #f48424;
  color: #ffffff;
}

.water-actions {
  display: flex;
  gap: 8px;
}

.lic-copy-btn {
  position: relative;
  top: 2px;
  margin-left: 6px;
  transform: translateY(5px) scale(0);
}

/* =========================
   Radio & toggles
   ========================= */

.lic-filter {
  display: flex;
  gap: 20px;
  font-size: 13px;
}

.wyc-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
}

.wyc-actions {
  display: flex !important;
}

.wyc-result__sub {
  font-size: 13px;
  color: #666;
}

/* =========================
   Custom radio buttons
   ========================= */

.lic-filter label {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  font-size: 13px;
  color: #333;
}

/* hide native radio */
.lic-filter input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border: 2px solid #cfcfcf;
  border-radius: 50%;
  background: #fff;
  display: inline-grid;
  place-content: center;
  margin: 0;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

/* inner dot */
.lic-filter input[type="radio"]::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  transform: scale(0);
  transition: transform 0.15s ease;
  background: #f28c28;
}

/* checked */
.lic-filter input[type="radio"]:checked {
  border-color: #f28c28;
}

.lic-filter input[type="radio"]:checked::before {
  transform: scale(1);
}

/* focus */
.lic-filter input[type="radio"]:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(242, 140, 40, 0.25);
}

/* disabled */
.lic-filter input[type="radio"]:disabled {
  border-color: #ddd;
  background: #f3f3f3;
  cursor: not-allowed;
}

.lic-filter input[type="radio"]:disabled::before {
  background: #bbb;
}

/* =========================
   checkbox
   ========================= */

/* Wrapper */
.lic-filter-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #333;
  cursor: pointer;
  margin-top: 1px;
}

/* Hide native checkbox */
.lic-filter-check input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;

  width: 18px;
  height: 18px;
  min-width: 18px;
  min-height: 18px;

  border: 2px solid var(--border-ui, #cfcfcf);
  background: #fff;

  border-radius: 4px;
  display: grid;
  place-items: center;
  box-sizing: border-box;

  cursor: pointer;
  transition: background-colour 0.2s ease, border-color 0.2s ease,
    box-shadow 0.2s ease;
}

/* Checkmark */
.lic-filter-check input[type="checkbox"]::after {
  position: relative;
  content: "";
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) translateY(-2px) scale(0);
  transition: transform 0.15s ease;
}

/* Checked state */
.lic-filter-check input[type="checkbox"]:checked {
  background: var(--accent, #f28c28);
  border-color: var(--accent, #f28c28);
}

.lic-filter-check input[type="checkbox"]:checked::after {
  transform: rotate(45deg) translateY(-2px) translateX(-1px) scale(1);
}

/* Hover */
.lic-filter-check input[type="checkbox"]:hover {
  border-color: var(--accent, #f28c28);
}

/* Focus (keyboard accessibility) */
.lic-filter-check input[type="checkbox"]:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(242, 140, 40, 0.25);
}

/* =========================
   Results
   ========================= */

.water-lic__results-inner {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.water-lic__actions {
  margin-top: 14px;
  display: flex;
  gap: 10px;
  align-items: center;
}

.water-lic__actions p {
  margin: 0;
  font-size: 13px;
  color: #555;
}

/* =========================
   Text helpers
   ========================= */

.water-result__sub {
  font-size: 13px;
  color: #666;
}

.adj_left {
  text-align: left;
}

/* =========================
   Footer
   ========================= */

.dem-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  opacity: 0.7;
  margin-top: 10px;
}

.dem-version,
.dem-copyright {
  color: #9a9a9a;
}

/* =========================
   Utilities
   ========================= */

.is-hidden {
  display: none;
}

/* =========================
   Tooltips
   ========================= */

.has-tooltip {
  position: relative;
}

.has-tooltip::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(128, 128, 128, 0.85);
  color: #fff;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 120ms ease;
}

.has-tooltip:hover::after {
  opacity: 1;
}

/* =========================
   LOADER
   ========================= */

.lic-loader {
  display: inline-block;
  width: 17px;
  height: 17px;
  margin-left: 8px;
  border: 2px solid #f28d2861;
  border-top-color: #f28c28;
  border-radius: 50%;
  animation: lic-spin 0.4s linear infinite;
}

.is-hidden {
  display: none !important;
}

@keyframes lic-spin {
  to {
    transform: rotate(360deg);
  }
}
