/* ==========================================================================
   fable_business - frontend styles (fbiz-)
   Obrazec za registracijo poslovnega racuna ima svojo stran (ruta
   fbiz-register), zato tu ni vec pop-up sloga.
   ========================================================================== */

/* ── CTA (stran oglasevanje-si) ── */
.fbiz-cta-wrap { text-align: center; margin: 34px auto 44px; max-width: 640px; }
.fbiz-cta-btn {
  display: inline-block; padding: 14px 34px; background: #111; color: #fff !important;
  border-radius: 10px; font-size: 17px; font-weight: 700; text-decoration: none;
  transition: opacity .15s ease;
}
.fbiz-cta-btn:hover { opacity: .85; }
.fbiz-cta-note { margin-top: 10px; color: #777; font-size: 13px; }
.fbiz-cta-inline { margin-top: 22px; padding: 12px 28px; font-size: 16px; }
.fbiz-cta-btn-light { background: #fff; color: #111 !important; }
.fbiz-cta-mid { clear: both; text-align: center; margin: 24px 0 36px; }
.fbiz-cta-mid .fbiz-cta-inline { margin-top: 0; }

/* ── Stran z obrazcem za registracijo (ruta fbiz-register) ── */
/* Polja na tej strani so cez celotno sirino kartice; skupni reset spodaj jih
   omeji na 440 px (nastavitve, onboarding), tu te omejitve ne zelimo. */
.fbiz-register-page .fbiz-register-form input[type="text"],
.fbiz-register-page .fbiz-register-form input[type="email"],
.fbiz-register-page .fbiz-register-form input[type="tel"] { max-width: none; }
.fbiz-form-section { margin: 22px 0 12px; font-size: 13px; text-transform: uppercase; letter-spacing: .4px; color: #666; border-bottom: 1px solid #eee; padding-bottom: 6px; }
.fbiz-register-form .fbiz-form-section:first-of-type { margin-top: 0; }
/* Kaj je pri sklopu javno in kaj ne (informacija o obdelavi ob zbiranju).
   Pripis je pomozno besedilo, zato je manjsi in svetlejsi od oznak polj
   (tema jih postavi na 12,5 px / #444) - sicer tekmuje z njimi za pozornost. */
.fbiz-section-note { margin: -4px 0 14px; color: #8a8a8a; font-size: 12px; line-height: 1.45; }
.fbiz-field-note { display: block; margin-top: 5px; color: #999; font-size: 12px; line-height: 1.4; }
.fbiz-field-row { display: flex; gap: 12px; }
.fbiz-field-row .auth-field { flex: 1; }
.fbiz-submit { width: 100%; margin-top: 18px; }
/* Tema: .auth-btn-primary { margin-top: 4px !important } */
.fbiz-register-page .fbiz-register-form .fbiz-submit.auth-btn-primary { margin-top: 26px !important; }
.fbiz-form-note { margin-top: 10px; font-size: 12px; color: #888; }

/* ── Skupni elementi (onboarding, nastavitve) ── */
.fbiz-box { background: #fff; border: 1px solid #e6e6e6; border-radius: 12px; padding: 20px 22px; margin: 0 0 18px; overflow: hidden; }
.fbiz-box::after { content: ""; display: table; clear: both; }
.fbiz-box h3 { margin: 0 0 10px; float: none; width: auto; }

/* ── Reset temnih form slogov (tema polja stilira s float) ──
   Brez tega inputi "pobegnejo" iz .fbiz-box, skatle pa se prekrivajo. */
.fbiz-onboarding form, .fbiz-dashboard form, .fbiz-register-page form { float: none; width: auto; margin: 0; }
.fbiz-onboarding .auth-field, .fbiz-dashboard .auth-field, .fbiz-register-page .auth-field {
  float: none; clear: both; width: 100%; margin: 0 0 14px; padding: 0;
}
.fbiz-onboarding .auth-label, .fbiz-dashboard .auth-label, .fbiz-register-page .auth-label {
  display: block; float: none; width: auto; max-width: none; text-align: left;
  font-weight: 600; font-size: 14px; color: #222; margin: 0 0 5px; padding: 0; line-height: 1.4;
}
.fbiz-onboarding input[type="text"], .fbiz-onboarding input[type="email"], .fbiz-onboarding input[type="password"],
.fbiz-onboarding input[type="url"], .fbiz-onboarding input[type="number"], .fbiz-onboarding textarea, .fbiz-onboarding select,
.fbiz-dashboard input[type="text"], .fbiz-dashboard input[type="email"], .fbiz-dashboard input[type="password"],
.fbiz-dashboard input[type="url"], .fbiz-dashboard input[type="number"], .fbiz-dashboard textarea, .fbiz-dashboard select,
.fbiz-register-page input[type="text"], .fbiz-register-page input[type="email"], .fbiz-register-page input[type="tel"], .fbiz-register-page input[type="password"],
.fbiz-register-page input[type="url"], .fbiz-register-page input[type="number"], .fbiz-register-page textarea, .fbiz-register-page select {
  float: none; display: block; width: 100%; max-width: 440px; min-width: 0; height: auto;
  box-sizing: border-box; margin: 0; padding: 9px 12px;
  border: 1px solid #d6d6d6; border-radius: 8px; background: #fff;
  font-size: 14px; line-height: 1.4; color: #222;
}
.fbiz-onboarding textarea, .fbiz-dashboard textarea { max-width: 100%; }
.fbiz-onboarding input:focus, .fbiz-onboarding textarea:focus, .fbiz-onboarding select:focus,
.fbiz-dashboard input:focus, .fbiz-dashboard textarea:focus, .fbiz-dashboard select:focus,
.fbiz-register-page input:focus, .fbiz-register-page textarea:focus, .fbiz-register-page select:focus {
  border-color: #111; outline: none; box-shadow: 0 0 0 3px rgba(0,0,0,.07);
}
.fbiz-onboarding input[type="checkbox"], .fbiz-dashboard input[type="checkbox"], .fbiz-register-page input[type="checkbox"] {
  float: none; display: inline-block; width: 16px; height: 16px; min-width: 16px; margin: 3px 0 0; padding: 0;
}
.fbiz-onboarding .btn, .fbiz-dashboard .btn { float: none; }
.fbiz-muted { color: #777; font-size: 13px; }
.fbiz-warning { background: #fff7e6; border: 1px solid #ffd591; border-radius: 8px; padding: 10px 14px; color: #7a5200; font-size: 14px; }
.fbiz-data-table { width: 100%; border-collapse: collapse; margin: 8px 0; }
.fbiz-data-table td { padding: 6px 8px; border-bottom: 1px solid #f0f0f0; font-size: 14px; }
.fbiz-data-table td:first-child { color: #777; width: 38%; }
.fbiz-check { display: flex; float: none; clear: both; width: auto; gap: 9px; align-items: flex-start; margin: 10px 0; font-size: 14px; font-weight: 400; text-align: left; cursor: pointer; }
.fbiz-check input { margin-top: 3px; }
.fbiz-check span { float: none; width: auto; line-height: 1.5; }
.fbiz-check-small { font-size: 13px; margin: 8px 0; }
.fbiz-badge { display: inline-block; padding: 2px 9px; border-radius: 20px; font-size: 11px; font-weight: 700; text-transform: uppercase; }
.fbiz-badge-trial { background: #e6f4ff; color: #0958d9; }

/* ── Nastavitve (poslovne sekcije na user-profile.php) ── */
.fbiz-dashboard { max-width: 860px; }
.fbiz-packages { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.fbiz-package-card { border: 1px solid #e6e6e6; border-radius: 12px; padding: 16px; }
.fbiz-package-card h4 { margin: 0 0 6px; }
.fbiz-package-features { margin: 8px 0; padding-left: 18px; font-size: 13px; color: #444; }
.fbiz-package-price { font-size: 17px; margin: 10px 0; }
.fbiz-item-row { border: 1px solid #e9e9e9; border-radius: 10px; padding: 10px 14px; margin: 0 0 10px; }
.fbiz-item-row summary { cursor: pointer; font-size: 14px; }
.fbiz-item-new { border-style: dashed; }
.fbiz-inline-form { margin-top: 12px; }
.fbiz-settings { max-width: none; }
.fbiz-stg-cta-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.fbiz-stg-cta-title { margin: 0; font-weight: 800; font-size: 15px; color: #191919; }
.fbiz-stg-cta-sub { margin: 3px 0 0; color: #8b8b90; font-size: 13px; line-height: 1.45; }

/* Poslovne sekcije v temi fable: vsebina je v .stg-body, zato so tabele in
   vrstice poravnane z robom telesa (brez dodatnega vodoravnega paddinga). */
.fbiz-settings .stg-body > .fbiz-data-table { margin: 0; }
.fbiz-settings .fbiz-data-table td { padding: 9px 0; border-bottom: 1px solid #ededee; font-size: 14px; line-height: 1.45; vertical-align: top; }
.fbiz-settings .fbiz-data-table tr:last-child td { border-bottom: none; padding-bottom: 0; }
.fbiz-settings .fbiz-data-table td:first-child { color: #8b8b90; font-weight: 600; width: 40%; }
.fbiz-settings .fbiz-data-table .fbiz-inline-form { margin-top: 8px; }
/* Vrstica s stikalom (samodejno podaljsanje): stikalo .stg-sw riše tema
   (pogodba .stg-*, glej themes/fable/user-profile.php) - tu je samo postavitev. */
.fbiz-sw-form { display: flex; align-items: center; gap: 10px; }
.fbiz-settings .fbiz-data-table .fbiz-sw-form { margin: 0; }
.fbiz-sw-form .fbiz-muted { line-height: 1.4; }
.fbiz-settings .fbiz-item-row { margin: 14px 0 0; padding: 12px 14px; border-radius: 11px; border-color: #dcdcde; }
/* Obrazec za spremembo podatkov podjetja: odpre ga besedilna povezava
   (.stg-cardlink / data-stg-toggle, tema fable), zato nima vec vrstice summary. */
.fbiz-settings #fbiz-change-request[hidden] { display: none; }
.fbiz-settings #fbiz-change-request > .fbiz-inline-form { margin-top: 0; }

/* ── Paket oglasevanja in podatki podjetja kot razsirljivi vrstici v seznamu
   "Drugo" (tema fable, .setrow-d / .setrow-edit). Privzeto sta zaprti. ── */
details.setrow-d.fbiz-settings > .setrow-edit > *:first-child { margin-top: 12px; }
details.setrow-d.fbiz-settings > .setrow-edit > *:last-child { margin-bottom: 0; }
details.setrow-d.fbiz-settings .fbiz-data-table { width: 100%; margin: 12px 0 0; }
details.setrow-d.fbiz-settings > .setrow-edit > .fbiz-warning,
details.setrow-d.fbiz-settings > .setrow-edit > .fbiz-muted,
details.setrow-d.fbiz-settings > .setrow-edit > p { margin: 12px 0 0; }
.fbiz-settings .fbiz-item-row summary { font-weight: 800; color: #191919; }
.fbiz-settings .fbiz-item-row > summary + * { margin-top: 12px; }
.fbiz-settings .stg-body > .fbiz-warning,
.fbiz-settings .stg-body > .fbiz-muted,
.fbiz-settings .stg-body > p { margin: 0 0 10px; }
.fbiz-settings .stg-body > *:last-child { margin-bottom: 0; }
.fbiz-settings .btn { padding: 10px 18px; font-size: 14px; line-height: 20px; border-radius: 500px; }

@media (max-width: 600px) {
  .fbiz-field-row { flex-direction: column; gap: 0; }
}

/* ── Registracija: samodokoncanje naziva (FURS), povzetek izbire, stikalo ──
   Razred .fbiz-has-furs doda js/register.js; brez JS so vsa polja vidna. */
.fbiz-company-lookup { position: relative; }
.fbiz-suggest {
  position: absolute; top: 100%; left: 0; right: 0; z-index: 60; margin-top: 4px;
  background: #fff; border: 1px solid #d6d6d6; border-radius: 10px;
  box-shadow: 0 10px 28px rgba(0,0,0,.10); max-height: 320px; overflow-y: auto; text-align: left;
}
.fbiz-suggest-item { display: block; padding: 9px 12px; cursor: pointer; border-top: 1px solid #f0f0f0; }
.fbiz-suggest-item:first-child { border-top: 0; }
.fbiz-suggest-item:hover, .fbiz-suggest-item[aria-selected="true"] { background: #f3f3f3; }
.fbiz-suggest-name { display: block; font-size: 14px; font-weight: 600; color: #111; line-height: 1.35; }
.fbiz-suggest-meta { display: block; font-size: 12px; color: #777; line-height: 1.4; margin-top: 1px; }

.fbiz-company-picked {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
  margin: -6px 0 14px; padding: 10px 12px; background: #f6f6f6; border-radius: 10px;
  font-size: 13px; color: #444; line-height: 1.45;
}
.fbiz-company-picked[hidden], .fbiz-login-email[hidden], .fbiz-manual-hint[hidden], .fbiz-suggest[hidden] { display: none; }
.fbiz-has-furs .fbiz-company-details:not(.is-open) { display: none; }
.fbiz-manual-hint { display: none; margin: -4px 0 14px; font-size: 13px; }
.fbiz-has-furs .fbiz-manual-hint { display: block; }
.fbiz-has-furs .fbiz-manual-hint[hidden] { display: none; }
.fbiz-register-page .fbiz-link-btn {
  background: none; border: 0; padding: 0; margin: 0; font: inherit; font-size: 13px; color: #111;
  text-decoration: underline; cursor: pointer; white-space: nowrap; float: none; width: auto; height: auto; line-height: inherit;
}
.fbiz-register-page .fbiz-link-btn:hover { opacity: .75; }

.fbiz-email-group { margin: 0 0 14px; }
.fbiz-email-group::after { content: ""; display: table; clear: both; }
.fbiz-email-group .auth-field { margin-bottom: 0; }
.fbiz-switch {
  position: relative; display: flex; align-items: center; gap: 10px; margin: 14px 0 0;
  float: none; width: auto; clear: none; font-weight: 600;   /* tema: label { float:left; width:100% } */
  cursor: pointer; font-size: 14px; color: #222; line-height: 1.4; user-select: none;
}
.fbiz-register-page .fbiz-switch input[type="checkbox"] {
  position: absolute; opacity: 0; width: 1px; height: 1px; min-width: 0; margin: 0; pointer-events: none;
}
.fbiz-switch-track {
  position: relative; flex: 0 0 auto; width: 44px; height: 26px; border-radius: 13px;
  background: #d1d1d6; transition: background .2s ease;
}
.fbiz-switch-track::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 22px; height: 22px; border-radius: 50%;
  background: #fff; box-shadow: 0 2px 4px rgba(0,0,0,.22); transition: transform .2s ease;
}
.fbiz-switch input:checked + .fbiz-switch-track { background: #111; }
.fbiz-switch input:checked + .fbiz-switch-track::after { transform: translateX(18px); }
.fbiz-switch input:focus-visible + .fbiz-switch-track { box-shadow: 0 0 0 3px rgba(0,0,0,.12); }
.fbiz-email-group .fbiz-login-email { margin-top: 16px; }

html[data-theme="dark"] .fbiz-register-page .fbiz-suggest { background: var(--fd-surface-2); border-color: var(--fd-border-strong); box-shadow: 0 10px 28px rgba(0,0,0,.45); }
html[data-theme="dark"] .fbiz-register-page .fbiz-suggest-item { border-top-color: var(--fd-border); }
html[data-theme="dark"] .fbiz-register-page .fbiz-suggest-item:hover,
html[data-theme="dark"] .fbiz-register-page .fbiz-suggest-item[aria-selected="true"] { background: var(--fd-surface-3); }
html[data-theme="dark"] .fbiz-register-page .fbiz-suggest-name { color: var(--fd-text); }
html[data-theme="dark"] .fbiz-register-page .fbiz-suggest-meta { color: var(--fd-text-dim); }
html[data-theme="dark"] .fbiz-register-page .fbiz-company-picked { background: var(--fd-surface-2); color: var(--fd-text-muted); }
html[data-theme="dark"] .fbiz-register-page .fbiz-link-btn, html[data-theme="dark"] .fbiz-register-page .fbiz-switch { color: var(--fd-text); }
html[data-theme="dark"] .fbiz-register-page .fbiz-switch-track { background: var(--fd-border-strong); }
html[data-theme="dark"] .fbiz-register-page .fbiz-switch input:checked + .fbiz-switch-track { background: var(--fd-solid); }
html[data-theme="dark"] .fbiz-register-page .fbiz-switch input:checked + .fbiz-switch-track::after { background: var(--fd-solid-text); }
.fbiz-suggest-item.fbiz-suggest-manual { font-size: 13px; color: #111; text-decoration: underline; background: #fafafa; }
.fbiz-suggest-item.fbiz-suggest-manual:hover, .fbiz-suggest-item.fbiz-suggest-manual[aria-selected="true"] { background: #f0f0f0; }
html[data-theme="dark"] .fbiz-register-page .fbiz-suggest-item.fbiz-suggest-manual { color: var(--fd-text); background: var(--fd-surface-3); }

/* Stran registracije (body.fbiz-register-body, hook fbiz_register_body_class): brez
   drobtinic in brez zgornjega odmika sekcije teme, da se sivi pas zacne tik pod glavo. */
body.fbiz-register-body div.breadcrumb { display: none; }
body.fbiz-register-body > section { padding-top: 0 !important; }

/* ── Registracija: svetel pas cez celo sirino, levo bela kartica z obrazcem,
   desno naslov + kljukice (user/register.php).
   box-shadow + clip-path narise pas cez celo sirino brez vodoravnega drsenja. ── */
.fbiz-register-page {
  max-width: none; margin: -20px 0 -50px; padding: 56px 16px 72px; background: #f4f5f7;   /* -20px: rob drobtinic; -50px: razmik teme do noge */
  box-shadow: 0 0 0 100vmax #f4f5f7; clip-path: inset(0 -100vmax);
}
.fbiz-register-inner { max-width: 1060px; margin: 0 auto; }
.fbiz-register-page.has-aside .fbiz-register-inner {
  display: grid; grid-template-columns: minmax(0, 580px) minmax(0, 1fr); gap: 72px; align-items: start;
}
.fbiz-register-card {
  min-width: 0; background: #fff; border-radius: 18px; padding: 36px 40px 30px;
  box-shadow: 0 1px 2px rgba(16,24,40,.04), 0 16px 40px rgba(16,24,40,.07);
}
.fbiz-register-page h1 { margin: 0 0 22px; font-size: 27px; line-height: 1.2; font-weight: 800; letter-spacing: -.3px; float: none; width: auto; }
.fbiz-register-form { background: none; border: 0; border-radius: 0; padding: 0; }
.fbiz-register-foot { margin: 26px 0 0; padding-top: 20px; border-top: 1px solid #ececef; text-align: center; font-size: 14px; color: #555; }
.fbiz-register-foot a { color: #111; font-weight: 600; text-decoration: underline; }
.fbiz-register-page .fbiz-cta-wrap { margin: 10px 0 0; text-align: left; }

.fbiz-register-aside { min-width: 0; padding-top: 10px; }
.fbiz-register-aside .fbiz-aside-title {
  margin: 0 0 12px; padding: 0; float: none; width: auto; border: 0;
  font-size: 32px; line-height: 1.15; font-weight: 800; letter-spacing: -.5px; color: #111;
}
.fbiz-aside-sub { margin: 0 0 26px; font-size: 16px; line-height: 1.55; color: #555; }
.fbiz-checks { list-style: none; margin: 0; padding: 0; }
.fbiz-checks li { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; padding: 0; list-style: none; float: none; width: auto; font-size: 16px; line-height: 1.4; color: #222; }
.fbiz-checks svg { flex: 0 0 auto; width: 22px; height: 22px; padding: 4px; box-sizing: border-box; border-radius: 50%; background: #16a34a; color: #fff; }

@media (max-width: 900px) {
  .fbiz-register-page { padding: 24px 12px 48px; }
  .fbiz-register-page.has-aside .fbiz-register-inner { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .fbiz-register-card { padding: 26px 20px 22px; border-radius: 14px; }
  .fbiz-register-aside { padding-top: 0; }
  .fbiz-register-aside .fbiz-aside-title { font-size: 26px; }
}

html[data-theme="dark"] .fbiz-register-page { background: var(--fd-bg); box-shadow: 0 0 0 100vmax var(--fd-bg); }
html[data-theme="dark"] .fbiz-register-page .fbiz-register-card { background: var(--fd-surface); border: 1px solid var(--fd-border); box-shadow: none; }
html[data-theme="dark"] .fbiz-register-page h1,
html[data-theme="dark"] .fbiz-register-page .fbiz-aside-title,
html[data-theme="dark"] .fbiz-register-page .fbiz-checks li,
html[data-theme="dark"] .fbiz-register-page .fbiz-register-foot a { color: var(--fd-text) !important; }
html[data-theme="dark"] .fbiz-register-page .fbiz-aside-sub,
html[data-theme="dark"] .fbiz-register-page .fbiz-register-foot { color: var(--fd-text-muted); }
html[data-theme="dark"] .fbiz-register-page .fbiz-register-foot { border-color: var(--fd-border); }

/* Obrazec v temnem nacinu (kartica je bila bela z belimi naslovi sklopov). */
html[data-theme="dark"] .fbiz-register-page .fbiz-form-section { color: var(--fd-text-muted); border-bottom-color: var(--fd-border); }
html[data-theme="dark"] .fbiz-register-page .fbiz-section-note,
html[data-theme="dark"] .fbiz-register-page .fbiz-form-note,
html[data-theme="dark"] .fbiz-register-page .auth-label { color: var(--fd-text); }
