/* Organizatorul — comparator energie */
.orgen [hidden] { display: none !important; }
.orgen { font-family: 'Sora', system-ui, sans-serif; color: #1F2937; background: #fff; border: 1px solid #DDE3EE; border-radius: 16px; padding: 18px; margin: 0 0 24px; }
.orgen-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; background: #F1F5F9; padding: 5px; border-radius: 12px; margin-bottom: 16px; }
.orgen-tabs button { min-height: 44px; border: 0; border-radius: 9px; background: transparent; font: 700 14.5px/1 'Sora', system-ui, sans-serif; color: #475569; cursor: pointer; }
.orgen-tabs button.is-on { background: #fff; color: #0D2B4E; box-shadow: 0 2px 8px rgba(13, 43, 78, .12); }
.orgen .orgen-form { display: grid; grid-template-columns: 1fr; gap: 12px 14px; align-items: start; margin: 0; }
.orgen .orgen-form label { display: flex; flex-direction: column; gap: 6px; margin: 0; font-size: 12.5px; font-weight: 700; color: #374151; line-height: 1.3; }
.orgen .orgen-form label > span { display: block; min-height: 1.3em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.orgen .orgen-form label[hidden] { display: none; }
.orgen .orgen-form select, .orgen .orgen-form input { box-sizing: border-box; height: 48px; min-height: 48px; margin: 0; border: 1.5px solid #DDE3EE; border-radius: 10px; padding: 0 12px; font: 600 15px/1.2 'Sora', system-ui, sans-serif; color: #0D2B4E; background-color: #fff; width: 100%; max-width: none; }
.orgen .orgen-form select:focus, .orgen .orgen-form input:focus { outline: none; border-color: #1565C0; box-shadow: 0 0 0 3px rgba(21, 101, 192, .15); }
.orgen .orgen-form input::placeholder { color: #9CA3AF; font-weight: 500; }
.orgen .orgen-go { grid-column: 1 / -1; box-sizing: border-box; height: 50px; margin: 4px 0 0; padding: 0 20px; border: 0; border-radius: 10px; background: #F5A623; color: #0D2B4E; font: 800 15px/1 'Sora', system-ui, sans-serif; cursor: pointer; }
.orgen .orgen-go:hover { background: #E8961A; }
.orgen-hint { font-size: 12.5px; color: #6B7280; margin: 10px 0 0; line-height: 1.5; }
.orgen-filters { display: flex; justify-content: space-between; align-items: center; margin: 16px 0 8px; font-size: 13.5px; }
.orgen-filters[hidden] { display: none; }
.orgen-count { color: #6B7280; }
.orgen-sum { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; margin: 8px 0 12px; }
.orgen-sum > div { background: #0D2B4E; color: #fff; border-radius: 12px; padding: 14px 16px; }
.orgen-sum > div.is-save { background: #065F46; }
.orgen-sum span { display: block; font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; opacity: .75; font-weight: 700; }
.orgen-sum strong { display: block; font-size: 24px; font-weight: 800; color: #F5A623; margin: 4px 0; }
.orgen-sum .is-save strong { color: #A7F3D0; }
.orgen-sum em { font-style: normal; font-size: 13px; opacity: .85; }
.orgen-list { list-style: none; margin: 0; padding: 0; border: 1px solid #DDE3EE; border-radius: 12px; overflow: hidden; }
.orgen-item { display: grid; grid-template-columns: 30px 1fr auto; gap: 12px; align-items: start; padding: 14px; }
.orgen-item + .orgen-item { border-top: 1px solid #EEF2F7; }
.orgen-item.is-best { background: #FFFBF2; }
.orgen-rank { width: 28px; height: 28px; border-radius: 50%; background: #F1F5F9; color: #0D2B4E; font-weight: 800; font-size: 13px; display: flex; align-items: center; justify-content: center; }
.orgen-item.is-best .orgen-rank { background: #F5A623; }
.orgen-main strong { display: block; font-size: 15px; color: #0D2B4E; }
.orgen-main > span { display: block; font-size: 12.5px; color: #6B7280; margin: 2px 0 6px; line-height: 1.4; }
.orgen-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.orgen-tags em { font-style: normal; font-size: 11.5px; font-weight: 600; background: #F1F5F9; color: #475569; padding: 3px 8px; border-radius: 999px; }
.orgen-tags em.is-warn { background: #FEF3C7; color: #92400E; }
.orgen-tags em.is-both { background: #E0F2FE; color: #075985; }
/* [org_energie_furnizori] — who sells electricity, gas or both. Three columns that must fit a phone without sideways scrolling. */
.orgen-fz { font-family: Sora, system-ui, sans-serif; margin: 0 0 24px; }
.orgen-fz-sum { font-size: 15px; line-height: 1.6; color: #0D2B4E; font-weight: 600; margin: 0 0 12px; }
.orgen-fz-wrap { overflow-x: auto; border: 1px solid #E2E8F0; border-radius: 12px; background: #fff; }
.orgen-fz table { width: 100%; border-collapse: collapse; margin: 0; border: 0; font-size: 14px; line-height: 1.5; table-layout: fixed; }
.orgen-fz th, .orgen-fz td { padding: 11px 12px; text-align: left; vertical-align: top; border: 0; border-bottom: 1px solid #EEF2F7; overflow-wrap: anywhere; }
.orgen-fz thead th { background: #0D2B4E; color: #fff; font-weight: 700; font-size: 13px; }
.orgen-fz thead th:first-child { width: 36%; }
.orgen-fz tbody tr:last-child th, .orgen-fz tbody tr:last-child td { border-bottom: 0; }
.orgen-fz tbody th { color: #0D2B4E; font-weight: 700; }
.orgen-fz td.is-da strong { color: #15803D; }
.orgen-fz td.is-fara strong { color: #92400E; }
.orgen-fz td.is-nu { color: #6B7280; }
.orgen-fz td a { color: #1565C0; white-space: nowrap; }
.orgen-fz td small { display: block; font-size: 12px; color: #92400E; margin-top: 2px; }
.orgen-fz td sup, .orgen-fz-note sup { font-size: 10px; color: #92400E; font-weight: 700; }
.orgen-fz-note { font-size: 13px; line-height: 1.6; color: #92400E; margin: 10px 0 0; }
@media (max-width: 480px) {
  .orgen-fz table { font-size: 13px; }
  .orgen-fz th, .orgen-fz td { padding: 9px 7px; }
  .orgen-fz thead th { font-size: 12px; }
  .orgen-fz thead th:first-child { width: 38%; }
}
/* Comparator: cost column, messages, source notes, phone layout and form columns (removed by mistake in 0.6.80, restored in 0.6.81). */
.orgen-cost { text-align: right; min-width: 130px; }
.orgen-cost strong { display: block; font-size: 19px; font-weight: 800; color: #0D2B4E; }
.orgen-cost span { display: block; font-size: 11.5px; color: #6B7280; }
.orgen-cost small { display: block; font-size: 11.5px; color: #6B7280; margin: 4px 0 6px; line-height: 1.4; }
.orgen-cost a { font-size: 12.5px; font-weight: 700; color: #1565C0; text-decoration: none; }
.orgen-msg { font-size: 14px; color: #475569; margin: 12px 0; }
.orgen-msg.is-err { color: #B91C1C; }
.orgen-src { font-size: 12px; color: #6B7280; margin: 14px 0 0; line-height: 1.6; }
@media (max-width: 600px) {
  .orgen { padding: 14px; }
  .orgen-item { grid-template-columns: 26px 1fr; }
  .orgen-cost { grid-column: 2; text-align: left; min-width: 0; }
  .orgen-sum strong { font-size: 21px; }
}
/* Fixed columns so no field is ever left alone on a row.
   Electricity: 3 fields → 3 columns (desktop) / 2 + full-width (tablet). Gas: 4 fields → 4 / 2×2. */
@media (min-width: 420px) {
  .orgen .orgen-form { grid-template-columns: 1fr 1fr; }
  .orgen .orgen-form:not(:has(.orgen-only-gaz:not([hidden]))) label:has([name=actual]) { grid-column: 1 / -1; }
  .orgen .orgen-form.orgen-gform:not(:has(.orgen-only-gaz:not([hidden]))) label:has([name=actual]) { grid-column: auto; }
}
@media (min-width: 720px) {
  .orgen .orgen-form { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .orgen .orgen-form:not(:has(.orgen-only-gaz:not([hidden]))) label:has([name=actual]) { grid-column: auto; }
  .orgen .orgen-form:has(.orgen-only-gaz:not([hidden])) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .orgen .orgen-form.orgen-gform { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
