/* VDB Frontend Auth – "app" izgled (prilagojeno po navodilih) */

.vdb-auth {
  min-height: 100vh;
  display: flex;
  flex-direction: row;
  background: #0b0f14;
  color: #e7eef7;
  overflow: hidden;
}

/* Naslovi morajo biti zeleni (ne glede na WP temo) */
.vdb-auth h1,
.vdb-auth h2,
.vdb-auth h3,
.vdb-auth h4,
.vdb-auth h5,
.vdb-auth h6 {
  color: #40e2a7 !important;
}

/* Left = 1/3, Right = 2/3 */
.vdb-auth__left {
  flex: 0 0 33.3333%;
  min-width: 320px;
  background: #0b0f14;
  position: relative;
  box-sizing: border-box;
}

.vdb-auth__left-inner {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 48px 36px;
  box-sizing: border-box;
}

.vdb-auth__main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vdb-auth.vdb-auth--logged-in .vdb-auth__main {
  align-items: flex-start;
  padding-top: 10px;
}

.vdb-auth__panel {
  width: 100%;
  max-width: 420px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 16px;
  padding: 22px;
  box-sizing: border-box;
  backdrop-filter: blur(8px);
}

/* notices */
.vdb-auth__notice {
  margin: 10px 0 14px 0;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 15px;
  line-height: 1.35;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.12);
}
.vdb-auth__notice--err {
  border-color: rgba(255, 120, 120, 0.55);
  color: rgba(255, 210, 210, 0.95);
}
.vdb-auth__notice--ok {
  border-color: rgba(64, 226, 167, 0.65);
  color: #40e2a7;
}

/* top-right link */
.vdb-auth__report {
  position: absolute;
  top: 16px;
  right: 18px;
  color: #ffffff;
  text-decoration: none;
  font-size: 13px;
  opacity: 0.90;
}
.vdb-auth__report:hover {
  opacity: 1;
  text-decoration: underline;
}

/* Show "Prijavi napako" only when NOT logged in */
.vdb-auth.vdb-auth--logged-in .vdb-auth__report {
  display: none;
}

/* logo */
.vdb-auth__logo-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}
.vdb-auth__logo {
  width: min(260px, 80%);
  height: auto; /* ohrani razmerje 100 : 38,91 */
  display: block;
}

/* Ime in priimek prijavljene osebe (pod logotipom) */
.vdb-auth__left-user {
  text-align: center;
  margin: 6px 0 12px 0;
  opacity: 0.95;
  line-height: 1.25;
}

.vdb-auth__left-user-label {
  font-size: 14px;
  font-weight: 800;
}

.vdb-auth__left-user-name {
  font-size: 16px;
  font-weight: 800;
  margin-top: 2px;
}

.vdb-auth__service-cloud {
  margin-top: 16px;
  padding: 18px 18px 16px;
  border-radius: 18px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.10);
  backdrop-filter: blur(8px);
}

.vdb-auth__service-cloud-title {
  margin: 0 0 10px 0;
  font-size: 15px;
  font-weight: 800;
  color: #e7eef7;
}

.vdb-auth__actions--compact {
  margin-top: 0;
}

.vdb-auth__muted {
  font-size: 13px;
  opacity: 0.78;
  margin: 8px 0 14px 0;
}

.vdb-auth h2 {
  margin: 0 0 6px 0;
  font-size: 18px;
  font-weight: 800;
}

/* Mini button (npr. "Nazaj" v korakih) */
.vdb-auth__btn--mini {
  width: auto !important;
  padding: 7px 12px;
  border-radius: 18px;
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
}

/* Inline button (npr. "Preveri" ob Hub ID) */
.vdb-auth__btn--inline {
  width: auto !important;
  padding: 14px 16px;
  border-radius: 22px;
  font-size: 13px;
  line-height: 1;
  flex: 0 0 auto;
  white-space: nowrap;
}

/* Hub ID field row */
.vdb-auth__hub-row {
  display: flex;
  gap: 12px;
  align-items: flex-end;
}

.vdb-auth__hub-input {
  flex: 1 1 auto;
  min-width: 0;
}

/* Notice line with action button */
.vdb-auth__notice-line {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.vdb-auth__notice-text {
  flex: 1 1 auto;
}

.vdb-auth__notice-actions {
  flex: 0 0 auto;
  display: flex;
  gap: 12px;
  align-items: center;
}

/* Header za "Dodaj objekt" (naslov + korak + gumb nazaj) */
.vdb-auth__add-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.vdb-auth__add-header h2 {
  margin: 0;
}

.vdb-auth__actions {
  display: flex;
  flex-direction: column;
  gap: 14px; /* razmik med gumboma prve strani */
  margin-top: 10px;
}


.vdb-auth__btn--doublegap{margin-top:14px;}
/* buttons */
.vdb-auth__btn {
  display: inline-block;
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  border-radius: 26px;
  border: 1px solid rgba(64, 226, 167, 0.70);
  background: transparent;
  color: #40e2a7;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  text-decoration: none; /* tudi za <a> */
}

.vdb-auth__btn:hover { opacity: 0.92; }

.vdb-auth__btn--primary {
  background: rgba(64, 226, 167, 0.16);
}

.vdb-auth__btn[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

/* anchor "disabled" (npr. Izhod med odjavo) */
.vdb-auth__btn[aria-disabled="true"] {
  opacity: 0.6;
  pointer-events: none;
  cursor: not-allowed;
}

.vdb-auth__row {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 12px;
}
.vdb-auth__row .vdb-auth__btn { flex: 1; }

/* link-like button */
.vdb-auth__link {
  display: inline-block;
  margin-top: 10px;
  font-size: 13px;
  color: #d9e7ff;
  opacity: 0.9;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
}
.vdb-auth__link:hover { opacity: 0.75; }

.vdb-auth__link--danger {
  color: #ff9a9a;
}

.vdb-auth__link--danger:hover {
  opacity: 0.85;
}

.vdb-auth__link--inline {
  margin-top: 0;
  font-size: 14px;
}

/* input look (kot na sliki) */
.vdb-auth__inputbox {
  margin-top: 12px;
  background: rgba(255,255,255,0.14);
  border-radius: 14px;
  padding: 16px 18px;
  box-sizing: border-box;
}

.vdb-auth__field { margin: 0; }
.vdb-auth__field + .vdb-auth__field { margin-top: 16px; }

.vdb-auth__otp-security {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: -8px 0 20px;
  padding: 12px 14px;
  border: 1px solid #d8e4df;
  border-radius: 10px;
  background: #f3f8f6;
  color: #44534d;
  font-size: 13px;
  line-height: 1.5;
}

.vdb-auth__otp-security-icon {
  flex: 0 0 auto;
  font-size: 15px;
  line-height: 1.45;
}

.vdb-auth__inspection-warning {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 2147483647;
  max-width: min(440px, calc(100vw - 32px));
  padding: 12px 16px;
  border: 1px solid #d7a49f;
  border-radius: 10px;
  background: #7d211a;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .2);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 16px);
  transition: opacity .18s ease, transform .18s ease;
}

.vdb-auth__inspection-warning--visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media print {
  .vdb-auth--inspection-locked {
    display: none !important;
  }
}

.vdb-auth__label {
  display: block;
  font-size: 12px;
  opacity: 0.85;
  margin: 0 0 6px 0;
}

.vdb-auth__input {
  width: 100%;
  box-sizing: border-box;
  padding: 14px 16px;
  border: 1px solid rgba(11,15,20,0.16);
  border-radius: 10px;
  background: #ffffff;
  color: #0b0f14;
  outline: none;
  font-size: 14px;
  line-height: 1.2;
  min-height: 52px;
}
.vdb-auth__input::placeholder { color: rgba(11,15,20,0.55); }

.vdb-auth .vdb-auth__input,
.vdb-auth .vdb-auth__input--box,
.vdb-auth .vdb-auth__textarea {
  color: #0b0f14 !important;
  -webkit-text-fill-color: #0b0f14;
}

.vdb-auth .vdb-auth__input::placeholder,
.vdb-auth .vdb-auth__input--box::placeholder,
.vdb-auth .vdb-auth__textarea::placeholder {
  color: rgba(11,15,20,0.55) !important;
  -webkit-text-fill-color: rgba(11,15,20,0.55) !important;
}

.vdb-auth__input:focus {
  border-color: rgba(64, 226, 167, 0.85);
}

/*
  FIX (frontend): nekateri WP temi/plugini prepišejo barvo teksta pri :focus
  in uporabnik med tipkanjem vidi črno besedilo na temni podlagi.
  Zato tukaj eksplicitno (in z višjo specifičnostjo) vsilimo barvo teksta.
*/
.vdb-auth .vdb-auth__input:focus,
.vdb-auth .vdb-auth__input:active,
.vdb-auth .vdb-auth__input--box:focus,
.vdb-auth .vdb-auth__input--box:active,
.vdb-auth .vdb-auth__textarea:focus,
.vdb-auth .vdb-auth__textarea:active,
.vdb-auth select.vdb-auth__input:focus,
.vdb-auth select.vdb-auth__input--box:focus {
  color: #e7eef7 !important;
  -webkit-text-fill-color: #e7eef7 !important;
  caret-color: #e7eef7;
  background: rgba(0,0,0,0.10) !important;
}

/* Chrome/Safari autofill (da ne obarva teksta v črno) */
.vdb-auth input.vdb-auth__input:-webkit-autofill,
.vdb-auth input.vdb-auth__input:-webkit-autofill:hover,
.vdb-auth input.vdb-auth__input:-webkit-autofill:focus {
  -webkit-text-fill-color: #0b0f14 !important;
  -webkit-box-shadow: 0 0 0px 1000px #ffffff inset;
  box-shadow: 0 0 0px 1000px #ffffff inset;
  transition: background-color 99999s ease-out 0s;
}

.vdb-auth input.vdb-auth__input:-webkit-autofill:focus {
  -webkit-text-fill-color: #e7eef7 !important;
  -webkit-box-shadow: 0 0 0px 1000px rgba(11,15,20,0.92) inset;
  box-shadow: 0 0 0px 1000px rgba(11,15,20,0.92) inset;
}

/* Divi-like (boxed) inputs – trenutno uporabljamo pri vnosu objekta (korak 3) */
.vdb-auth__input--box {
  /* backwards-compat: zdaj je osnovni .vdb-auth__input že "boxed" */
  padding: 14px 16px;
  border: 1px solid rgba(11,15,20,0.16);
  border-radius: 10px;
  background: #ffffff;
  color: #0b0f14;
  min-height: 52px;
}

.vdb-auth__input--box:focus {
  border-color: rgba(64, 226, 167, 0.85);
}

select.vdb-auth__input,
select.vdb-auth__input--box {
  padding-right: 34px;
  color: #0b0f14;
}

/*
  FIX: Native <select> dropdown (options) pogosto podeduje barvo teksta iz <select>.
  Ker ima naš UI svetel tekst na temni podlagi, OS dropdown (svetla podlaga)
  postane neberljiv (bel tekst na skoraj beli podlagi).
  Zato za option/optgroup vsilimo temen tekst na svetli podlagi.
*/
.vdb-auth select.vdb-auth__input option,
.vdb-auth select.vdb-auth__input--box option,
.vdb-auth select.vdb-auth__input optgroup,
.vdb-auth select.vdb-auth__input--box optgroup {
  color: #0b0f14 !important;
  background: #ffffff !important;
}

.vdb-auth select.vdb-auth__input option[disabled],
.vdb-auth select.vdb-auth__input--box option[disabled] {
  color: #6f7b8a !important;
}

.vdb-auth__input[readonly] {
  opacity: 0.85;
}

/* cards used for consents/done/forgot – keep them clean inside panel */
.vdb-auth__card {
  margin-top: 6px;
  padding: 0;
  background: transparent;
  border: none;
}

.vdb-auth__consents {
  border-top: 1px solid rgba(255,255,255,0.10);
  padding-top: 12px;
  margin-top: 10px;
}

.vdb-auth__consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 10px 0;
}

.vdb-auth__consent input { margin-top: 4px; }

.vdb-auth__consent-title {
  font-weight: 700;
  font-size: 13px;
  margin: 0;
}

.vdb-auth__consent-body {
  font-size: 12px;
  opacity: 0.85;
  margin: 4px 0 0 0;
  white-space: pre-wrap;
}

.vdb-auth__done p { margin: 10px 0; }

/* footer (exit button) */
.vdb-auth__footer {
  display: flex;
  justify-content: center;
  margin-top: 18px;
}
.vdb-auth__footer .vdb-auth__btn {
  max-width: 420px;
}

/* Show "Odjava" only when logged in */
.vdb-auth:not(.vdb-auth--logged-in) #vdb-exit {
  display: none;
}

/* right side background */
.vdb-auth__right {
  flex: 1 1 0;
  position: relative;
  background: #0b0f14;
}

/* ====================== Top navigation (Glavni menu + podmenu) ====================== */

.vdb-auth__topnav {
  position: relative;
  z-index: 3;
  width: 100%;
  box-sizing: border-box;
  padding: 18px 48px 0 48px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.vdb-auth__menu-row,
.vdb-auth__submenu-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  flex-wrap: wrap;
}

.vdb-auth__menu-row {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 14px;
  padding: 10px 14px;
  backdrop-filter: blur(8px);
}

.vdb-auth__menubtn {
  appearance: none;
  border: none;
  background: transparent;
  color: #e7eef7;
  font-weight: 800;
  font-size: 14px;
  padding: 6px 10px;
  cursor: pointer;
  opacity: 0.85;
}

.vdb-auth__menubtn:hover { opacity: 1; }

.vdb-auth__menubtn--active {
  color: #40e2a7;
  opacity: 1;
}

.vdb-auth__menu-sep {
  opacity: 0.35;
  font-weight: 700;
}

.vdb-auth__submenu-row {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 8px 12px;
  backdrop-filter: blur(8px);
}

.vdb-auth__submenubtn {
  appearance: none;
  border: none;
  background: transparent;
  color: rgba(231,238,247,0.90);
  font-weight: 700;
  font-size: 13px;
  padding: 6px 10px;
  cursor: pointer;
  opacity: 0.70;
}

.vdb-auth__submenubtn:hover { opacity: 0.95; }

.vdb-auth__submenubtn--active {
  color: #40e2a7;
  opacity: 1;
}

.vdb-auth__headertext {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  word-break: break-word;
}

.vdb-auth__eyebrow {
  font-size: 12px;
  font-weight: 700;
  color: rgba(231,238,247,0.82);
}

/* profile panel (right side) */
.vdb-auth__right-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 28px;
  padding: 32px 48px 48px;
  box-sizing: border-box;
  flex-wrap: wrap;
}

.vdb-auth__profile {
  position: relative;
  max-width: 560px;
  margin: 0;
  width: 560px;
  flex: 0 1 560px;
  padding: 22px;
  box-sizing: border-box;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 16px;
  backdrop-filter: blur(8px);
}

.vdb-auth__profile--welcome {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
}

.vdb-auth__welcome-card {
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.vdb-auth__welcome-message {
  margin: 0;
  color: #40e2a7;
  font-size: 32px;
  font-weight: 800;
  line-height: 1.15;
}

.vdb-auth__welcome-name {
  color: #e7eef7;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.2;
  word-break: break-word;
}

.vdb-auth__objects-filters {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}

.vdb-auth__objects-filterlabel {
  font-size: 12px;
  opacity: 0.85;
}

.vdb-auth__objects-filterbuttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.vdb-auth__filterbtn {
  appearance: none;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.04);
  color: #e7eef7;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  opacity: 0.86;
}

.vdb-auth__filterbtn:hover {
  opacity: 1;
  border-color: rgba(64,226,167,0.34);
}

.vdb-auth__filterbtn--active {
  border-color: rgba(64,226,167,0.72);
  background: rgba(64,226,167,0.10);
  color: #40e2a7;
  opacity: 1;
}

.vdb-auth__filterdot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  display: inline-block;
}

.vdb-auth__filterdot--red { background: #ff3510; }
.vdb-auth__filterdot--yellow { background: #dfe500; }
.vdb-auth__filterdot--green { background: #00ff2a; }

/* Moji objekti – seznam */
.vdb-auth__objectlist {
  list-style: none;
  margin: 12px 0 0 0;
  padding: 0;
}

.vdb-auth__objectitem {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  border-radius: 14px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  margin: 0 0 12px 0;
  overflow: hidden;
}

.vdb-auth__objectcontent {
  flex: 1 1 auto;
  min-width: 0;
  padding: 16px 18px;
}

.vdb-auth__objectstate {
  flex: 0 0 40px;
  align-self: stretch;
}

.vdb-auth__objectstate--red {
  background: #ff3510;
}

.vdb-auth__objectstate--yellow {
  background: #dfe500;
}

.vdb-auth__objectstate--green {
  background: #00ff2a;
}

.vdb-auth__objectstate--neutral {
  background: rgba(255, 255, 255, 0.18);
}

.vdb-auth__objectlink {
  display: inline;
  border: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  color: #65fbd0;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.vdb-auth__objectlink:hover {
  text-decoration: underline;
}

.vdb-auth__objectname {
  font-weight: 800;
  margin: 0;
}

.vdb-auth__objectmeta {
  margin: 4px 0 0 0;
  font-size: 13px;
  opacity: 0.85;
}

.vdb-auth__join-request {
  border-left: 4px solid #e0a01e;
}

.vdb-auth__join-request-heading {
  margin: 16px 2px 8px;
  padding: 0;
  color: #8a5d05;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
  list-style: none;
  text-transform: uppercase;
}

.vdb-auth__join-request-message {
  margin: 12px 0 0;
  padding: 11px 13px;
  border-radius: 9px;
  background: #f4f6f7;
  color: #3f4e5a;
  font-size: 13px;
  line-height: 1.55;
  white-space: pre-wrap;
}

.vdb-auth__join-request-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin-top: 14px;
}

.vdb-auth__join-request-role {
  flex: 1 1 220px;
  max-width: 330px;
  margin: 0 !important;
}

.vdb-auth__directory-item {
  overflow: hidden;
}

.vdb-auth__directory-button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  margin: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.vdb-auth__detailcard {
  margin-top: 8px;
  padding: 18px;
  border-radius: 16px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
}

.vdb-auth__detailgrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.vdb-auth__detailitem {
  min-width: 0;
}

.vdb-auth__detaillabel {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  opacity: 0.72;
}

.vdb-auth__detailvalue {
  margin-top: 6px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
  word-break: break-word;
}

.vdb-auth__directory-section {
  margin-top: 18px;
}

.vdb-auth__directory-section h3 {
  margin: 0 0 10px 0;
}

.vdb-auth__contactcards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.vdb-auth__contactcard {
  padding: 16px;
  border-radius: 14px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
}

.vdb-auth__contactrole {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #65fbd0;
}

.vdb-auth__contactname {
  margin-top: 8px;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.35;
}

.vdb-auth__contactmeta {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.5;
  opacity: 0.86;
  word-break: break-word;
}

/* Naprave v objektu – seznam */
.vdb-auth__devicelist {
  list-style: none;
  margin: 12px 0 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.vdb-auth__deviceitem {
  border-radius: 14px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  padding: 14px 16px;
}

.vdb-auth__deviceitem--clickable {
  cursor: pointer;
}

.vdb-auth__deviceitem--clickable:hover {
  border-color: rgba(64, 226, 167, 0.55);
}

.vdb-auth__deviceitem-title {
  font-weight: 800;
  color: var(--vdb-accent);
}

.vdb-auth__deviceitem-meta {
  margin: 6px 0 0 0;
  font-size: 13px;
  opacity: 0.85;
}

/* Naprava – dovoljenih dogodki */
.vdb-auth__events {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.vdb-auth__eventrow {
  border-radius: 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  padding: 12px 14px;
}

.vdb-auth__eventrow-top {
  display: flex;
  align-items: center;
  gap: 10px;
}

.vdb-auth__eventcheck {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-weight: 800;
}

.vdb-auth__eventcheck input {
  width: 18px;
  height: 18px;
  accent-color: var(--vdb-accent);
}

.vdb-auth__eventname {
  font-size: 15px;
}

.vdb-auth__eventdefault {
  margin: 8px 0 10px;
  font-size: 13px;
  opacity: 0.85;
}

.vdb-auth__eventmsg {
  width: 100%;
}

/* Status objekta v vogalu (urejanje objekta / prihodnji podpogledi objekta) */
.vdb-auth__corner-state {
  position: absolute;
  top: 0;
  right: 0;
  width: 74px;
  height: 74px;
  overflow: hidden;
  border-top-right-radius: 16px;
  pointer-events: none;
  z-index: 4;
}

.vdb-auth__corner-state::before {
  content: '';
  position: absolute;
  inset: 0;
  clip-path: polygon(100% 0, 0 0, 100% 100%);
  background: #00ff2a;
}

.vdb-auth__corner-state--red::before {
  background: #ff3510;
}

.vdb-auth__corner-state--yellow::before {
  background: #dfe500;
}

.vdb-auth__corner-state--green::before {
  background: #00ff2a;
}

/* Desni blok z navodili/sporočilom (Moj VDB račun) */
.vdb-auth__note {
  width: 420px;
  flex: 0 1 420px;
  max-width: 420px;
  margin: 0;
}

.vdb-auth__note-box {
  margin-top: 0;
}

.vdb-auth__note-content {
  color: #e7eef7;
  font-size: 13px;
  line-height: 1.45;
}


/* ====================== Modes ====================== */

/* Dodaj objekt (mode):
 * - skrij "Moj VDB račun" (account) panel + pripadajoče navodilo
 * - pokaži add-object panel + status
 */
.vdb-auth--mode-add-object .vdb-auth__profile--account,
.vdb-auth--mode-add-object #vdb-profile-note-wrap {
  display: none !important;
}

.vdb-auth:not(.vdb-auth--mode-add-object) .vdb-auth__profile--add-object,
.vdb-auth:not(.vdb-auth--mode-add-object) .vdb-auth__note--status {
  display: none !important;
}

/* Add-object panel je vizualno enak "profile" panelu */
.vdb-auth__profile--add-object {
  min-height: 240px;
}

/* Semafor */
.vdb-auth__semaphore-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 200px;
}

.vdb-auth__semaphore {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 18px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
}

.vdb-auth__light {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.12);
  opacity: 0.20; /* neaktivne luči */
  box-shadow: none;
}

.vdb-auth__light--red { background: rgba(255, 88, 88, 0.55); }
.vdb-auth__light--yellow { background: rgba(255, 212, 88, 0.55); }
.vdb-auth__light--green { background: rgba(64, 226, 167, 0.55); }

.vdb-auth__semaphore--red .vdb-auth__light--red,
.vdb-auth__semaphore--yellow .vdb-auth__light--yellow,
.vdb-auth__semaphore--green .vdb-auth__light--green {
  opacity: 1;
  border-color: rgba(255,255,255,0.30);
  box-shadow: 0 0 0 6px rgba(255,255,255,0.03);
}

.vdb-auth__semaphore--red .vdb-auth__light--red {
  background: rgba(255, 88, 88, 0.90);
  box-shadow: 0 0 0 6px rgba(255, 88, 88, 0.10);
}
.vdb-auth__semaphore--yellow .vdb-auth__light--yellow {
  background: rgba(255, 212, 88, 0.92);
  box-shadow: 0 0 0 6px rgba(255, 212, 88, 0.10);
}
.vdb-auth__semaphore--green .vdb-auth__light--green {
  background: rgba(64, 226, 167, 0.92);
  box-shadow: 0 0 0 6px rgba(64, 226, 167, 0.10);
}

.vdb-auth__semaphore-title {
  font-size: 13px;
  font-weight: 800;
  color: #e7eef7;
  text-align: center;
  opacity: 0.95;
}

/* V note besedilu naj bodo tudi naslovi beli (ne zeleni kot ostali h*) */
.vdb-auth__note-content h1,
.vdb-auth__note-content h2,
.vdb-auth__note-content h3,
.vdb-auth__note-content h4,
.vdb-auth__note-content h5,
.vdb-auth__note-content h6 {
  color: #e7eef7 !important;
}

.vdb-auth__note-content p { margin: 0 0 10px 0; }
.vdb-auth__note-content p:last-child { margin-bottom: 0; }

.vdb-auth__note-content a { color: #d9e7ff; text-decoration: underline; }

.vdb-auth__profile h3 {
  margin: 16px 0 6px 0;
  font-size: 14px;
  font-weight: 800;
}

.vdb-auth__statusbox {
  margin-top: 10px;
}

.vdb-auth__statuslist {
  margin: 6px 0 0 0;
  padding-left: 18px;
}

.vdb-auth__statuslist li {
  font-size: 13px;
  margin: 4px 0;
}

.vdb-auth__textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 14px 16px;
  border: 1px solid rgba(11,15,20,0.16);
  border-radius: 10px;
  background: #ffffff;
  color: #0b0f14;
  outline: none;
  resize: vertical;
  min-height: 110px;
  font-size: 14px;
  line-height: 1.3;
}
.vdb-auth__textarea::placeholder { color: rgba(11,15,20,0.55); }
.vdb-auth__textarea:focus { border-color: rgba(64, 226, 167, 0.85); }

.vdb-auth__input[disabled],
.vdb-auth__textarea[disabled] {
  opacity: 0.62;
  cursor: not-allowed;
}

.vdb-auth__bg {
  position: absolute;
  inset: 0;
  background-image: var(--vdb-right-bg, radial-gradient(circle at 40% 10%, rgba(64,226,167,0.22), rgba(11,15,20,0.0) 55%),
                                     radial-gradient(circle at 70% 60%, rgba(97,163,255,0.14), rgba(11,15,20,0.0) 65%),
                                     linear-gradient(135deg, rgba(0,0,0,0.35), rgba(0,0,0,0.15)));
  background-size: cover;
  background-position: center;
  opacity: 0.95;
}

.vdb-auth--logged-in .vdb-auth__bg {
  background-image: none !important;
}

/* Boot overlay (prevents login flicker while checking session state) */
.vdb-auth__boot {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(2px);
}

.vdb-auth__boot-card {
  width: calc(100% - 48px);
  max-width: 360px;
  background: rgba(28, 28, 28, 0.92);
  border: 1px solid rgba(64, 226, 167, 0.25);
  border-radius: 18px;
  padding: 18px 22px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,.45);
}

.vdb-auth__boot-spinner {
  width: 34px;
  height: 34px;
  margin: 0 auto 10px;
  border-radius: 999px;
  border: 4px solid rgba(64, 226, 167, 0.25);
  border-top-color: #40e2a7;
  animation: vdb-spin 0.9s linear infinite;
}

.vdb-auth__boot-text {
  color: #ffffff;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: .2px;
}

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

.vdb-auth__brand {
  position: absolute;
  right: 24px;
  bottom: 18px;
  font-size: 14px;
  opacity: 0.85;
}

.vdb-auth__brand-name { margin-right: 8px; }

.vdb-auth__brand-link {
  color: inherit;
  text-decoration: none;
}
.vdb-auth__brand-link:hover {
  text-decoration: underline;
}

.vdb-auth__brand-ver {
  font-size: 12px;
  opacity: 0.80;
}

.vdb-auth__hidden { display: none !important; }

/* responsive */
@media (max-width: 980px) {
  .vdb-auth { flex-direction: column; }
  .vdb-auth__left { flex: none; width: 100%; min-width: 0; }
  .vdb-auth__left-inner { padding: 38px 22px; }
  .vdb-auth__right { width: 100%; min-height: 280px; }
  .vdb-auth__report { top: 12px; right: 14px; }

  .vdb-auth__corner-state {
    width: 66px;
    height: 66px;
  }

  /* Telefon: desno polje brez slike v ozadju */
  .vdb-auth__bg {
    background-image: none !important;
    opacity: 1;
  }

  .vdb-auth__topnav {
    padding: 14px 22px 0 22px;
  }

  .vdb-auth__menu-row,
  .vdb-auth__submenu-row {
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
  }

  .vdb-auth__right-inner {
    flex-direction: column;
    padding: 22px;
    gap: 18px;
  }

  .vdb-auth__profile {
    max-width: none;
    width: 100%;
    flex: 1 1 auto;
  }


  .vdb-auth__welcome-message {
    font-size: 28px;
  }

  .vdb-auth__welcome-name {
    font-size: 24px;
  }

  .vdb-auth__note {
    max-width: none;
    width: 100%;
  }
  /* Dodaj objekt: na telefonu je account panel skrit, add-object panel se prikaže */
  .vdb-auth--mode-add-object .vdb-auth__profile--account {
    display: none;
  }

}


/* step 3 (Dodaj objekt) helpers */
#vdb-add-object-step3-form{border:0;margin:0;padding:0;min-width:0;}
#vdb-add-object-step3-form .vdb-auth__field-error { margin-top: 6px; color: #a3241b; font-size: 13px; line-height: 1.45; }
#vdb-add-object-step3-form [aria-invalid="true"] { border-color: #b42318; outline-color: #b42318; }
#vdb-object-create-notice { scroll-margin: 24px; }
#vdb-object-municipality-search { margin-bottom: 8px; }
#vdb-object-municipality-results:not(:empty) { margin-bottom: 8px; }
.vdb-auth__grid2 {
  display: flex;
  gap: 14px;
}
.vdb-auth__grid2 > .vdb-auth__field {
  flex: 1;
}

.vdb-auth__grid3 {
  display: flex;
  gap: 14px;
}
.vdb-auth__grid3 > .vdb-auth__field {
  flex: 1;
}

/* V gridih ne želimo navpičnega zamika med polji */
.vdb-auth__grid2 > .vdb-auth__field + .vdb-auth__field,
.vdb-auth__grid3 > .vdb-auth__field + .vdb-auth__field {
  margin-top: 0;
}

.vdb-auth__hint {
  font-size: 13px;
  margin-top: 8px;
}

@media (max-width: 860px) {
  .vdb-auth__grid3 {
    flex-direction: column;
    gap: 0;
  }
}

@media (max-width: 720px) {
  .vdb-auth__grid2 {
    flex-direction: column;
    gap: 0;
  }
}

/* Ensure VDB form fields remain usable even when global "copy protection" plugins
   disable selection/context menus. We scope this strictly to the VDB UI. */
.vdb-auth input,
.vdb-auth textarea,
.vdb-auth select {
  -webkit-user-select: text !important;
  user-select: text !important;
  -webkit-touch-callout: default !important;
}


/* divider (za ločevanje sekcij) */
.vdb-auth__divider {
  height: 1px;
  background: rgba(255,255,255,0.12);
  margin: 18px 0;
  border-radius: 1px;
}


/* modal (pop-up navodila) */
.vdb-auth__modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  box-sizing: border-box;
}

.vdb-auth__modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.65);
}

.vdb-auth__modal-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 760px;
  background: rgba(17,24,33,0.96);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  padding: 18px 18px 16px;
  box-sizing: border-box;
  box-shadow: 0 16px 50px rgba(0,0,0,0.45);
}

.vdb-auth__modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: none;
  background: transparent;
  color: #e7eef7;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  opacity: 0.8;
}
.vdb-auth__modal-close:hover { opacity: 1; }

.vdb-auth__modal-title {
  margin: 0 34px 12px 0;
  font-size: 18px;
}

.vdb-auth__modal-body {
  max-height: 70vh;
  overflow: auto;
  font-size: 15px;
  line-height: 1.45;
  color: #e7eef7;
}

.vdb-auth__modal-body p { margin-top: 0; }

/* Simple tables (used for Fire Unit people list) */
.vdb-auth__tablewrap {
  overflow-x: auto;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 12px;
}
.vdb-auth__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.vdb-auth__table th,
.vdb-auth__table td {
  text-align: left;
  padding: 10px 12px;
  vertical-align: top;
}
.vdb-auth__table th {
  color: #bcd0e3;
  font-weight: 600;
  background: rgba(0,0,0,0.16);
}
.vdb-auth__table td {
  border-top: 1px solid rgba(255,255,255,0.10);
  color: #e7eef7;
}

/* Checkbox row layout */
.vdb-auth__checks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
}
.vdb-auth__checks label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
}

.vdb-auth__checkline {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 13px 14px;
  border: 1px solid #dce4ea;
  border-radius: 10px;
  background: #f7f9fa;
  color: #263747;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
}
.vdb-auth__checkline input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
}
.vdb-auth__checkline:has(input:disabled) {
  opacity: .72;
}

@media (max-width: 720px) {
  .vdb-auth__modal {
    padding: 14px;
  }
  .vdb-auth__modal-card {
    padding: 16px 14px 14px;
  }
  .vdb-auth__modal-body {
    max-height: 72vh;
  }
}

/* ========================================================================== */
/* VDB portal 0.5 – bela prijava in večstolpčni prijavljeni uporabniški vmesnik */
/* ========================================================================== */

.vdb-auth {
  --vdb-ink: #142130;
  --vdb-muted: #687787;
  --vdb-line: #dce4ea;
  --vdb-soft: #f5f7f9;
  --vdb-red: #b9271e;
  --vdb-red-dark: #8f1d17;
  --vdb-green: #2f9b6f;
  --vdb-yellow: #d89516;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  min-height: 100dvh;
  background: #fff;
  color: var(--vdb-ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow: hidden;
}

.vdb-auth *, .vdb-auth *::before, .vdb-auth *::after { box-sizing: border-box; }
.vdb-auth h1, .vdb-auth h2, .vdb-auth h3, .vdb-auth h4, .vdb-auth h5, .vdb-auth h6 { color: var(--vdb-ink) !important; }
.vdb-auth button, .vdb-auth input, .vdb-auth select, .vdb-auth textarea { font: inherit; }
.vdb-auth button:focus-visible, .vdb-auth a:focus-visible, .vdb-auth input:focus-visible, .vdb-auth select:focus-visible, .vdb-auth textarea:focus-visible { outline: 3px solid rgba(47,155,111,.24); outline-offset: 2px; }

/* Prijava */
.vdb-auth:not(.vdb-auth--logged-in) {
  width: var(--vdb-guest-viewport-width, 100vw);
  margin-left: calc(50% - var(--vdb-guest-viewport-width, 100vw) / 2);
  flex-direction: row;
  height: var(--vdb-guest-viewport-height, 100dvh);
  min-height: 0;
  box-sizing: border-box;
}
.vdb-auth:not(.vdb-auth--logged-in) .vdb-auth__left {
  flex: 0 0 50%;
  min-width: 420px;
  max-height: var(--vdb-guest-viewport-height, 100dvh);
  overflow-y: auto;
  background: #fff;
  color: var(--vdb-ink);
}
.vdb-auth:not(.vdb-auth--logged-in) .vdb-auth__left-inner { min-height: var(--vdb-guest-viewport-height, 100dvh); padding: 54px clamp(34px, 6vw, 96px); }
.vdb-auth:not(.vdb-auth--logged-in) .vdb-auth__main { align-items: center; }
.vdb-auth:not(.vdb-auth--logged-in) .vdb-auth__panel { max-width: 470px; padding: 0; background: transparent; border: 0; border-radius: 0; box-shadow: none; backdrop-filter: none; }
.vdb-auth:not(.vdb-auth--logged-in) .vdb-auth__logo-wrap { justify-content: center; margin-bottom: 54px; }
.vdb-auth__logo { width: min(270px, 75%); max-height: 96px; object-fit: contain; object-position: center; }
/* The first login screen fits shorter laptop viewports without constraining longer flows. */
.vdb-auth.vdb-auth--login-start .vdb-auth__left-inner { padding: 32px clamp(24px, 3.5vw, 64px); }
.vdb-auth.vdb-auth--login-start .vdb-auth__logo-wrap { margin-bottom: 26px; }
.vdb-auth.vdb-auth--login-start .vdb-auth__logo { width: min(218px, 66%); max-height: 76px; }
.vdb-auth.vdb-auth--login-start .vdb-auth__wordmark strong { font-size: 34px; }
.vdb-auth.vdb-auth--login-start .vdb-auth__wordmark span { font-size: 16px; }
.vdb-auth__wordmark, .vdb-auth__app-brand { display: inline-flex; align-items: baseline; gap: 10px; color: var(--vdb-ink); }
.vdb-auth__wordmark strong { font-size: 38px; letter-spacing: -.04em; }
.vdb-auth__wordmark span { font-size: 18px; font-weight: 700; }
.vdb-auth:not(.vdb-auth--logged-in) .vdb-auth__view h1 { margin: 0 0 14px; font-size: clamp(31px, 3vw, 44px); line-height: 1.08; letter-spacing: -.035em; }
.vdb-auth:not(.vdb-auth--logged-in) .vdb-auth__eyebrow { margin: 0 0 10px; color: var(--vdb-red); font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.vdb-auth:not(.vdb-auth--logged-in) .vdb-auth__muted { margin: 0 0 26px; color: var(--vdb-muted); opacity: 1; font-size: 15px; line-height: 1.65; }
.vdb-auth:not(.vdb-auth--logged-in) .vdb-auth__inputbox { margin: 0; padding: 0; background: transparent; }
.vdb-auth__registration-profile { margin: 22px 0 20px; padding: 18px; border: 1px solid var(--vdb-line); border-radius: 13px; background: #f7f9fa; }
.vdb-auth__registration-profile h3 { margin: 0 0 5px; font-size: 17px; }
.vdb-auth:not(.vdb-auth--logged-in) .vdb-auth__registration-profile .vdb-auth__muted { margin-bottom: 14px; font-size: 13px; }
.vdb-auth:not(.vdb-auth--logged-in) .vdb-auth__registration-profile .vdb-auth__inputbox { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.vdb-auth:not(.vdb-auth--logged-in) .vdb-auth__registration-profile .vdb-auth__inputbox > .vdb-auth__field + .vdb-auth__field { margin-top: 0; }
.vdb-auth:not(.vdb-auth--logged-in) .vdb-auth__registration-profile .vdb-auth__field:last-child { grid-column: 1 / -1; }
.vdb-auth:not(.vdb-auth--logged-in) .vdb-auth__label { margin-bottom: 8px; color: #384857; opacity: 1; font-size: 13px; font-weight: 700; }
.vdb-auth .vdb-auth__input, .vdb-auth .vdb-auth__input--box, .vdb-auth .vdb-auth__textarea,
.vdb-auth .vdb-auth__input:focus, .vdb-auth .vdb-auth__input:active, .vdb-auth .vdb-auth__input--box:focus, .vdb-auth .vdb-auth__input--box:active, .vdb-auth .vdb-auth__textarea:focus, .vdb-auth .vdb-auth__textarea:active, .vdb-auth select.vdb-auth__input:focus, .vdb-auth select.vdb-auth__input--box:focus {
  color: var(--vdb-ink) !important;
  -webkit-text-fill-color: var(--vdb-ink) !important;
  caret-color: var(--vdb-red);
  background: #fff !important;
  border-color: #cbd6de;
}
.vdb-auth .vdb-auth__input:focus, .vdb-auth .vdb-auth__textarea:focus { border-color: var(--vdb-green) !important; box-shadow: 0 0 0 4px rgba(47,155,111,.1); }
.vdb-auth:not(.vdb-auth--logged-in) .vdb-auth__row { margin-top: 18px; }
.vdb-auth:not(.vdb-auth--logged-in) .vdb-auth__btn { border-radius: 9px; min-height: 50px; }
.vdb-auth .vdb-auth__btn { border-color: var(--vdb-red); color: var(--vdb-red); }
.vdb-auth .vdb-auth__btn--primary { background: var(--vdb-red); border-color: var(--vdb-red); color: #fff; }
.vdb-auth .vdb-auth__btn--primary:hover { background: var(--vdb-red-dark); opacity: 1; }
.vdb-auth__btn--outline { background: #fff; border: 1px solid #cbd6de !important; color: var(--vdb-ink) !important; border-radius: 9px !important; }
.vdb-auth:not(.vdb-auth--logged-in) .vdb-auth__actions2 { text-align: center; }
.vdb-auth:not(.vdb-auth--logged-in) .vdb-auth__link { color: var(--vdb-red); opacity: 1; text-decoration: none; }
.vdb-auth__login-divider { display: flex; align-items: center; gap: 12px; margin: 25px 0 15px; color: #8b97a3; font-size: 12px; }
.vdb-auth__login-divider::before, .vdb-auth__login-divider::after { content: ""; flex: 1; height: 1px; background: var(--vdb-line); }
.vdb-auth:not(.vdb-auth--logged-in) .vdb-auth__notice { background: #fff4f2; border-color: #efc4be; color: #7d211a; }
.vdb-auth__report { color: var(--vdb-muted); }
.vdb-auth:not(.vdb-auth--logged-in) .vdb-auth__footer { display: none; }

.vdb-auth:not(.vdb-auth--logged-in) .vdb-auth__right { min-width: 0; width: auto; background: #050807; }
.vdb-auth__guest-slider { position: absolute; inset: 0; z-index: 1; display: grid; grid-template-rows: max-content max-content; align-content: safe center; gap: 16px; padding: 24px clamp(22px, 3.5vw, 54px); overflow-y: auto; background: #050807; color: #fff; }
.vdb-auth__slide { min-width: 0; min-height: 0; display: grid; grid-template-rows: max-content max-content; align-items: center; justify-items: center; gap: 8px; animation: vdb-slide-in .45s ease both; }
.vdb-auth__slide[hidden] { display: none; }
.vdb-auth__slide img { display: block; width: 100%; height: clamp(120px, calc(var(--vdb-guest-viewport-height, 100dvh) - 340px), 420px); min-height: 0; max-height: 420px; object-fit: contain; margin: 0; }
.vdb-auth__slide-copy { width: 100%; max-width: 620px; text-align: center; overflow-wrap: anywhere; }
.vdb-auth__slide-copy span { color: #71d3ad; font-size: 12px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.vdb-auth__slide-copy h2 { margin: 9px 0 8px; color: #fff !important; font-size: clamp(24px, 2.4vw, 34px); line-height: 1.15; letter-spacing: -.025em; }
.vdb-auth__slide-copy p { margin: 0 auto; max-width: 620px; color: #d2dce3; font-size: 15px; line-height: 1.5; }
.vdb-auth__slide-copy p:not(.vdb-auth__slide-note) { white-space: pre-line; }
.vdb-auth__slide-copy .vdb-auth__slide-note { margin-top: 10px; color: #a7b8b0; font-size: 13px; line-height: 1.4; }
.vdb-auth__slider-controls { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px; }
.vdb-auth__slider-controls > button { display: inline-grid; place-items: center; flex: 0 0 auto; min-width: 44px; width: 44px; min-height: 44px; padding: 0; border: 1px solid rgba(255,255,255,.3); border-radius: 50%; background: rgba(255,255,255,.04); color: #fff; font-size: 24px; line-height: 1; cursor: pointer; }
.vdb-auth__slider-controls > button:hover { border-color: rgba(255,255,255,.7); background: rgba(255,255,255,.09); }
.vdb-auth__slider-controls > .vdb-auth__slider-pause { width: auto; padding: 0 13px; border-radius: 24px; font-size: 14px; line-height: 1.3; }
.vdb-auth__slider-dots { display: flex; gap: 0; }
.vdb-auth__slider-dots button { display: grid; place-items: center; width: 44px; min-width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: transparent; cursor: pointer; }
.vdb-auth__slider-dots button::before { content: ""; width: 8px; height: 8px; border-radius: 5px; background: rgba(255,255,255,.5); transition: width .2s ease, background-color .2s ease; }
.vdb-auth__slider-dots button[aria-current="true"]::before { width: 24px; background: #fff; }
.vdb-auth__slider-controls button:focus-visible { outline: 3px solid #71d3ad; outline-offset: 3px; }
@keyframes vdb-slide-in { from { opacity: 0; } to { opacity: 1; } }

.vdb-auth__boot { background: #fff !important; backdrop-filter: none; }
.vdb-auth__boot-card { background: #fff; border-color: var(--vdb-line); box-shadow: 0 14px 40px rgba(16,34,48,.12); }
.vdb-auth__boot-spinner { border-color: #d9e8e1; border-top-color: var(--vdb-green); }
.vdb-auth__boot-text { color: var(--vdb-ink); }

/* Prijavljeni portal */
.vdb-auth__app-header, .vdb-auth__workspace { display: none; }
.vdb-auth--logged-in { display: block; height: 100dvh; background: var(--vdb-soft); }
.vdb-auth--logged-in .vdb-auth__left, .vdb-auth--logged-in .vdb-auth__guest-slider, .vdb-auth--logged-in .vdb-auth__bg { display: none !important; }
.vdb-auth--logged-in .vdb-auth__right { width: 100%; height: 100dvh; display: flex; flex-direction: column; background: var(--vdb-soft); color: var(--vdb-ink); }
.vdb-auth--logged-in .vdb-auth__app-header { flex: 0 0 70px; position: relative; z-index: 30; display: grid; grid-template-columns: 270px minmax(0,1fr) auto; align-items: center; min-height: 70px; padding: 0 22px; background: #0c1725; color: #fff; box-shadow: 0 1px 0 rgba(255,255,255,.08); }
.vdb-auth__app-brand { color: #fff; gap: 8px; }
.vdb-auth__app-brand strong { font-size: 28px; letter-spacing: -.04em; }
.vdb-auth__app-brand span { font-size: 13px; font-weight: 700; }
.vdb-auth__app-brand small { color: #ff766c; font-size: 9px; font-weight: 900; }
.vdb-auth__header-location { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.vdb-auth__header-location span { color: #8fa0af; font-size: 11px; text-transform: uppercase; letter-spacing: .09em; }
.vdb-auth__header-location strong { overflow: hidden; color: #fff; font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
.vdb-auth__header-actions { display: flex; align-items: center; gap: 10px; }
.vdb-auth__header-actions { justify-self: end; }
.vdb-auth__header-help, .vdb-auth__account-trigger, .vdb-auth__sidebar-toggle { border: 0; background: transparent; color: #fff; cursor: pointer; }
.vdb-auth__header-help { width: 36px; height: 36px; border: 1px solid #334252; border-radius: 50%; font-weight: 800; }
.vdb-auth__sidebar-toggle { display: none; width: 42px; height: 42px; font-size: 22px; }
.vdb-auth__account-menu { position: relative; }
.vdb-auth__account-trigger { display: flex; align-items: center; gap: 9px; min-height: 44px; padding: 4px 8px; border-radius: 9px; font-size: 13px; }
.vdb-auth__account-trigger:hover { background: rgba(255,255,255,.07); }
.vdb-auth__avatar { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #e5f4ee; color: #1f7654; font-size: 12px; font-weight: 900; }
.vdb-auth__account-dropdown { position: absolute; top: calc(100% + 7px); right: 0; width: 210px; padding: 7px; background: #fff; border: 1px solid var(--vdb-line); border-radius: 12px; box-shadow: 0 16px 38px rgba(8,21,33,.2); }
.vdb-auth__account-dropdown button { width: 100%; padding: 11px 12px; border: 0; border-radius: 8px; background: transparent; color: var(--vdb-ink); text-align: left; cursor: pointer; }
.vdb-auth__account-dropdown button:hover { background: var(--vdb-soft); }
.vdb-auth__account-dropdown button.is-active { background: var(--vdb-soft); font-weight: 700; }

.vdb-auth--logged-in .vdb-auth__workspace { flex: 1 1 auto; min-height: 0; display: grid; grid-template-columns: 270px minmax(460px, 1fr) 320px; overflow: hidden; }
.vdb-auth__sidebar { min-width: 0; overflow-y: auto; background: #fff; border-right: 1px solid var(--vdb-line); padding: 22px 14px 26px; }
.vdb-auth__sidebar-heading { margin: 0 10px 12px; color: #8b98a4; font-size: 10px; font-weight: 900; letter-spacing: .11em; text-transform: uppercase; }
.vdb-auth--logged-in .vdb-auth__topnav { width: 100%; padding: 0; gap: 5px; }
.vdb-auth--logged-in .vdb-auth__menu-row { width: 100%; display: flex; flex-direction: column; align-items: stretch; gap: 4px; }
.vdb-auth--logged-in .vdb-auth__menu-sep { display: none !important; }
.vdb-auth--logged-in .vdb-auth__menubtn { width: 100%; min-height: 42px; padding: 10px 12px 10px 38px; border: 0; border-radius: 9px; background: transparent; color: #435363; font-size: 13px; font-weight: 700; text-align: left; opacity: 1; position: relative; }
.vdb-auth--logged-in .vdb-auth__menubtn::before { position: absolute; left: 13px; width: 16px; color: #7b8996; text-align: center; }
#vdb-menu-account::before { content: "⌂"; } #vdb-menu-objects::before { content: "▦"; } #vdb-menu-security::before { content: "◇"; } #vdb-menu-fireunits::before { content: "♢"; }
.vdb-auth--logged-in .vdb-auth__menubtn:hover { background: #f2f5f7; }
.vdb-auth--logged-in .vdb-auth__menubtn--active { background: #edf5f2; color: #1f7855; }
.vdb-auth--logged-in .vdb-auth__submenu-row { width: 100%; display: flex; flex-direction: column; align-items: stretch; gap: 3px; padding: 0 0 3px 30px; }
.vdb-auth--logged-in .vdb-auth__submenubtn { width: 100%; padding: 7px 10px; color: #637281; text-align: left; opacity: 1; }
.vdb-auth--logged-in .vdb-auth__submenubtn--active { color: var(--vdb-red); }
.vdb-auth__sidebar-tree { margin-top: 15px; padding-top: 15px; border-top: 1px solid #edf0f2; }
.vdb-auth__sidebar-tree > .vdb-auth__tree-account { display: block; width: 100%; margin-bottom: 9px; padding: 10px 11px; border: 0; border-radius: 8px; background: transparent; color: #435363; font-size: 12px; font-weight: 800; text-align: left; cursor: pointer; }
.vdb-auth__sidebar-tree > .vdb-auth__tree-account:hover, .vdb-auth__sidebar-tree > .vdb-auth__tree-account.is-active { background: #edf5f2; color: #1f7855; }
.vdb-auth__sidebar-setup { display: grid; gap: 4px; margin: 0 0 12px; padding: 11px; border: 1px solid #efc6b5; border-radius: 9px; background: #fff4ee; color: #754a42; }
.vdb-auth__sidebar-setup strong { color: #8d2a22; font-size: 11px; }
.vdb-auth__sidebar-setup span { font-size: 10px; line-height: 1.45; }
.vdb-auth__tree-list button.vdb-auth__tree-locked { color: #8a96a1; }
.vdb-auth__tree-list button.vdb-auth__tree-locked::after { content: " • dokončajte račun"; font-size: 9px; font-weight: 600; }
.vdb-auth__tree-group { margin-bottom: 4px; }
.vdb-auth__tree-group summary { display: flex; align-items: center; justify-content: space-between; padding: 9px 11px; color: #536373; font-size: 12px; font-weight: 800; cursor: pointer; list-style: none; }
.vdb-auth__tree-group summary::-webkit-details-marker { display: none; }
.vdb-auth__tree-group summary::before { content: "›"; margin-right: 7px; transition: transform .18s ease; }
.vdb-auth__tree-group[open] summary::before { transform: rotate(90deg); }
.vdb-auth__tree-group summary span { margin-left: auto; min-width: 22px; padding: 2px 6px; border-radius: 20px; background: #eef2f4; color: #778592; text-align: center; }
.vdb-auth__tree-list { padding-left: 19px; }
.vdb-auth__tree-list button { display: block; width: 100%; padding: 7px 9px; overflow: hidden; border: 0; border-left: 2px solid #e3e9ed; background: transparent; color: #6c7986; font-size: 12px; text-align: left; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; }
.vdb-auth__tree-list button:hover, .vdb-auth__tree-list button.is-active { border-left-color: var(--vdb-red); color: var(--vdb-red); }
.vdb-auth__tree-list button.vdb-auth__tree-primary { color: #263746; font-weight: 750; }
.vdb-auth__tree-list button.vdb-auth__tree-action { color: var(--vdb-red); font-weight: 750; }
.vdb-auth__tree-subitems { display: grid; gap: 2px; margin: 2px 0 7px 12px; padding-left: 8px; border-left: 1px dashed #cfd9df; }
.vdb-auth__tree-subitems button { padding-block: 5px; border-left: 0; font-size: 11px; }
.vdb-auth__tree-subitems--readonly > span { margin: 5px 0 3px; color: #8a96a1; font-size: 10px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.vdb-auth__tree-subitems--readonly > div { padding: 4px 7px; overflow: hidden; color: #6c7986; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.vdb-auth__sidebar-actions { display: grid; gap: 7px; margin-top: 20px; padding-top: 18px; border-top: 1px solid #edf0f2; }
.vdb-auth__sidebar-actions button { padding: 10px 11px; border: 1px solid var(--vdb-line); border-radius: 8px; background: #fff; color: #455565; font-size: 12px; font-weight: 700; text-align: left; cursor: pointer; }
.vdb-auth__sidebar-actions button:hover { border-color: #bdc8d0; background: var(--vdb-soft); }

.vdb-auth__content { min-width: 0; overflow-y: auto; padding: 24px clamp(18px, 2vw, 34px) 70px; background: var(--vdb-soft); }
.vdb-auth--logged-in .vdb-auth__right-inner { width: 100%; max-width: 1120px; margin: 0 auto; display: block; padding: 0; }
.vdb-auth--logged-in .vdb-auth__profile, .vdb-auth--logged-in .vdb-auth__profile--add-object { width: 100%; max-width: none; min-height: 0; padding: clamp(20px, 2.5vw, 32px); background: #fff; border: 1px solid var(--vdb-line); border-radius: 14px; box-shadow: 0 4px 18px rgba(22,38,52,.04); backdrop-filter: none; color: var(--vdb-ink); }
.vdb-auth--logged-in .vdb-auth__profile h2 { margin-bottom: 18px; font-size: 25px; letter-spacing: -.025em; }
.vdb-auth__section-tabs { display: flex !important; visibility: visible !important; width: 100%; margin: 2px 0 22px; overflow-x: auto; border-bottom: 1px solid var(--vdb-line); opacity: 1; scrollbar-width: thin; }
.vdb-auth__section-tab { flex: 0 0 auto; min-width: 116px; min-height: 43px; margin: 0 0 -1px; padding: 10px 18px; border: 1px solid transparent; border-bottom-color: var(--vdb-line); border-radius: 10px 10px 0 0; background: #f4f6f7; color: #687787; font-size: 13px; font-weight: 800; cursor: pointer; }
.vdb-auth__section-tab + .vdb-auth__section-tab { margin-left: 3px; }
.vdb-auth__section-tab:hover { background: #eef2f4; color: var(--vdb-ink); }
.vdb-auth__section-tab.is-active { position: relative; z-index: 1; border-color: var(--vdb-line); border-bottom-color: #fff; background: #fff; color: var(--vdb-ink); }
.vdb-auth__onboarding { display: flex; align-items: flex-start; gap: 12px; margin: 0 0 18px; padding: 14px; border: 1px solid #efc6b5; border-radius: 11px; background: #fff4ee; }
.vdb-auth__onboarding > span { display: grid; flex: 0 0 27px; place-items: center; width: 27px; height: 27px; border-radius: 50%; background: var(--vdb-red); color: #fff; font-weight: 900; }
.vdb-auth__onboarding strong { color: #7b261f; font-size: 13px; }
.vdb-auth__onboarding p { margin: 5px 0 0; color: #754a42; font-size: 12px; line-height: 1.55; }
.vdb-auth--logged-in .vdb-auth__inputbox { background: #f7f9fa; border: 1px solid #e4e9ed; }
.vdb-auth--logged-in .vdb-auth__muted { color: var(--vdb-muted); opacity: 1; }
.vdb-auth--logged-in .vdb-auth__objectitem, .vdb-auth--logged-in .vdb-auth__deviceitem, .vdb-auth--logged-in .vdb-auth__detailcard, .vdb-auth--logged-in .vdb-auth__contactcard, .vdb-auth--logged-in .vdb-auth__eventrow { background: #fff; border-color: var(--vdb-line); }
.vdb-auth--logged-in .vdb-auth__objectlink, .vdb-auth--logged-in .vdb-auth__deviceitem-title, .vdb-auth--logged-in .vdb-auth__contactrole { color: #236f53; }
.vdb-auth--logged-in .vdb-auth__objectstate { flex-basis: 8px; }
.vdb-auth--logged-in .vdb-auth__objectstate--red { background: #d3453c; }
.vdb-auth--logged-in .vdb-auth__objectstate--yellow { background: #e0a01e; }
.vdb-auth--logged-in .vdb-auth__objectstate--green { background: #32a272; }
.vdb-auth--logged-in .vdb-auth__filterbtn { border-color: var(--vdb-line); background: #fff; color: #536373; }
.vdb-auth--logged-in .vdb-auth__filterbtn--active { border-color: #9bbcaf; background: #edf6f2; color: #236f53; }
.vdb-auth--logged-in .vdb-auth__tablewrap { border-color: var(--vdb-line); }
.vdb-auth--logged-in .vdb-auth__table th { color: #526271; background: #f3f6f8; }
.vdb-auth--logged-in .vdb-auth__table td { border-color: var(--vdb-line); color: var(--vdb-ink); }
.vdb-auth--logged-in .vdb-auth__notice { background: #f5f8fa; border-color: var(--vdb-line); color: var(--vdb-ink); }
.vdb-auth--logged-in .vdb-auth__notice--err { background: #fff1ef; border-color: #efbeb9; color: #88251e; }
.vdb-auth--logged-in .vdb-auth__notice--ok { background: #eaf7f1; border-color: #afd8c7; color: #226f52; }
.vdb-auth--logged-in .vdb-auth__note-content,
.vdb-auth--logged-in .vdb-auth__note-content * { color: #344454 !important; }
.vdb-auth--logged-in .vdb-auth__note-content a { color: #1f6fca !important; }
.vdb-auth__content .vdb-auth__note:not(#vdb-profile-note-wrap) { display: none !important; }
/* The account instructions still follow JS view visibility; do not hide their content globally. */
.vdb-auth__content #vdb-profile-note-wrap { width:100%; max-width:none; margin-top:20px; }

.vdb-auth__context-rail { overflow-y: auto; padding: 18px 14px 72px; background: #fff; border-left: 1px solid var(--vdb-line); }
.vdb-auth__priority-notice { display: flex; gap: 11px; margin-bottom: 14px; padding: 14px; border: 1px solid #efc6b5; border-radius: 12px; background: #fff4ee; }
.vdb-auth__priority-notice > span { display: grid; flex: 0 0 26px; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--vdb-red); color: #fff; font-weight: 900; }
.vdb-auth__priority-notice strong { color: #7b261f; font-size: 13px; }
.vdb-auth__priority-notice p { margin: 5px 0 0; color: #754a42; font-size: 12px; line-height: 1.5; }
.vdb-auth__priority-notice-content > :first-child { margin-top: 5px; }
.vdb-auth__priority-notice-content > :last-child { margin-bottom: 0; }
.vdb-auth__priority-notice-content ul, .vdb-auth__priority-notice-content ol { margin: 7px 0 0; padding-left: 18px; color: #754a42; font-size: 12px; line-height: 1.5; }
.vdb-auth__context-card { border: 1px solid var(--vdb-line); border-radius: 12px; background: #fff; overflow: hidden; }
.vdb-auth__context-heading { display: flex; align-items: center; justify-content: space-between; padding: 13px 15px; border-bottom: 1px solid var(--vdb-line); color: #1f6fca; font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; }
.vdb-auth__context-heading button { width: 29px; height: 29px; border: 0; border-radius: 50%; background: #eef4fa; color: #1f6fca; cursor: pointer; }
.vdb-auth__context-content { padding: 14px; color: #4e5e6d; font-size: 12px; line-height: 1.55; }
.vdb-auth__context-content[aria-busy="true"] { opacity: .62; }
.vdb-auth__context-status { margin-bottom: 14px; padding: 12px; border-left: 4px solid #9aa6b0; border-radius: 8px; background: #f5f7f9; }
.vdb-auth__context-status--green { border-left-color: var(--vdb-green); background: #edf8f3; }
.vdb-auth__context-status--yellow { border-left-color: var(--vdb-yellow); background: #fff8e9; }
.vdb-auth__context-status--red { border-left-color: #cf3e35; background: #fff2f0; }
.vdb-auth__context-status h3 { margin: 0 0 5px !important; font-size: 14px !important; }
.vdb-auth__context-status p { margin: 0; }
.vdb-auth__context-facts { display: grid; grid-template-columns: 1fr auto; gap: 7px 12px; margin: 0 0 16px; }
.vdb-auth__context-facts dt { color: #73818e; }
.vdb-auth__context-facts dd { margin: 0; color: var(--vdb-ink); font-weight: 800; text-align: right; }
.vdb-auth__context-content > h3 { margin: 14px 0 8px !important; font-size: 13px !important; }
.vdb-auth__context-issues { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; }
.vdb-auth__context-issues li { padding: 10px; border: 1px solid #e4e9ed; border-radius: 9px; }
.vdb-auth__context-issues strong { display: block; color: var(--vdb-ink); font-size: 12px; }
.vdb-auth__context-issues p { margin: 4px 0; }
.vdb-auth__context-issues small { display: block; color: #8c5b18; }
.vdb-auth__context-ok { margin: 0; padding: 10px; border-radius: 8px; background: #edf8f3; color: #267353; }
.vdb-auth__sidebar-backdrop { display: none; }
.vdb-auth--logged-in .vdb-auth__brand { right: 335px; bottom: 14px; z-index: 12; color: #71808d; font-size: 11px; }
.vdb-auth--logged-in .vdb-auth__modal-card { background: #fff; border-color: var(--vdb-line); color: var(--vdb-ink); }
.vdb-auth--logged-in .vdb-auth__modal-title, .vdb-auth--logged-in .vdb-auth__modal-body { color: var(--vdb-ink) !important; }
.vdb-auth--logged-in .vdb-auth__modal-close { color: var(--vdb-ink); }
.vdb-auth__btn--danger { border-color: #b82c25 !important; background: #b82c25 !important; color: #fff !important; }

/* Pregledni sredinski seznami: vrstice namesto kartic/"oblakov". */
.vdb-auth__data-list { width: 100%; margin: 14px 0 0; padding: 0; overflow-x: auto; overflow-y: hidden; border: 1px solid var(--vdb-line); border-radius: 10px; list-style: none; }
.vdb-auth__data-row { display: grid; min-width: 0; align-items: center; margin: 0; border-bottom: 1px solid #e3e8ec; color: var(--vdb-ink); }
.vdb-auth__data-row:last-child { border-bottom: 0; }
.vdb-auth__data-row:not(.vdb-auth__data-row--head):nth-child(odd) { background: #f3f5f6; }
.vdb-auth__data-row:not(.vdb-auth__data-row--head):nth-child(even) { background: #fff; }
.vdb-auth__data-row--object { grid-template-columns: minmax(150px,1.35fr) minmax(160px,1.25fr) minmax(135px,1fr) minmax(105px,.78fr) minmax(120px,.85fr) 100px; }
.vdb-auth__data-row--owner-object { grid-template-columns: minmax(150px,1.35fr) minmax(160px,1.25fr) minmax(135px,1fr) minmax(105px,.78fr) minmax(170px,1.05fr) minmax(160px,1fr) minmax(120px,.85fr) 100px; }
.vdb-auth__target-group, .vdb-auth__forwarding-permission { display: inline-flex; max-width: 100%; padding: 5px 10px; border-radius: 18px; font-size: 12px; font-weight: 700; line-height: 1.4; white-space: normal; }
.vdb-auth__target-group.is-testing { background: #fff0e4; color: #8a370e; }
.vdb-auth__target-group.is-receiving { background: #eaf5ee; color: #21663f; }
.vdb-auth__forwarding-permission.is-allowed { background: #eaf5ee; color: #21663f; }
.vdb-auth__forwarding-permission.is-denied { background: #fff0ee; color: #a32318; }
.vdb-auth__target-group.is-unavailable, .vdb-auth__forwarding-permission.is-unavailable { background: #f0f2f4; color: #49515a; }
.vdb-auth__data-row--fireunit { grid-template-columns: minmax(190px,1.5fr) minmax(140px,1fr) minmax(150px,1.1fr) minmax(130px,.9fr); }
.vdb-auth__data-row--head { min-height: 38px; background: #e9edf0; color: #52616e; font-size: 10px; font-weight: 900; letter-spacing: .045em; text-transform: uppercase; }
.vdb-auth__data-cell { min-width: 0; padding: 12px 13px; overflow-wrap: anywhere; font-size: 12px; line-height: 1.4; }
.vdb-auth__data-cell + .vdb-auth__data-cell { border-left: 1px solid rgba(214,221,226,.72); }
.vdb-auth__data-cell--primary { font-weight: 800; }
.vdb-auth__data-primary { width: 100%; padding: 0; border: 0; background: transparent; color: #236f53; font: inherit; font-weight: 800; text-align: left; cursor: pointer; }
.vdb-auth__data-primary:hover { color: #18583f; text-decoration: underline; }
.vdb-auth__status-chip { display: inline-flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 800; white-space: nowrap; }
.vdb-auth__status-chip > span { width: 8px; height: 8px; border-radius: 50%; background: #d3453c; }
.vdb-auth__status-chip--yellow > span { background: #e0a01e; }
.vdb-auth__status-chip--green > span { background: #32a272; }
.vdb-auth__row-actions { display: flex; justify-content: flex-end; gap: 6px; }
.vdb-auth__row-action { display: inline-grid; width: 31px; height: 31px; padding: 6px; place-items: center; border: 1px solid #cfd8de; border-radius: 7px; background: #fff; color: #536473; cursor: pointer; }
.vdb-auth__row-action:hover { border-color: #8ca0ae; color: #233645; }
.vdb-auth__row-action--delete { color: #a72f28; }
.vdb-auth__row-action--delete:hover { border-color: #d89893; background: #fff1ef; color: #8b211b; }
.vdb-auth__row-action svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.vdb-auth__readonly-label { color: #7b8893; font-size: 10px; font-weight: 800; white-space: nowrap; }

.vdb-auth__btn--outline-danger { border-color: #d89893 !important; background: #fff !important; color: #9b2a23 !important; }
.vdb-auth__btn--outline-danger:hover { background: #fff1ef !important; }
.vdb-auth__testing-permission-form { margin-bottom: 22px; padding-bottom: 20px; border-bottom: 1px solid #dfe5e9; }
.vdb-auth__testing-permission-form h4, #vdb-testing-permissions-panel > h4 { margin: 0 0 12px; }
.vdb-auth__testing-permission-list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.vdb-auth__testing-permission-card { padding: 15px; border: 1px solid #d9e1e6; border-left: 4px solid #a8b3bc; border-radius: 10px; background: #fff; }
.vdb-auth__testing-permission-card--pending { border-left-color: #e0a01e; }
.vdb-auth__testing-permission-card--approved { border-left-color: #32a272; }
.vdb-auth__testing-permission-card--rejected, .vdb-auth__testing-permission-card--revoked { border-left-color: #d3453c; }
.vdb-auth__testing-permission-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; color: var(--vdb-ink); }
.vdb-auth__testing-permission-status { flex: 0 0 auto; padding: 4px 8px; border-radius: 999px; background: #eef2f4; color: #536473; font-size: 10px; font-weight: 900; }
.vdb-auth__testing-permission-meta, .vdb-auth__testing-permission-note { margin: 7px 0 0; color: #61717f; font-size: 12px; line-height: 1.5; }
.vdb-auth__testing-permission-note { color: #3f4e5a; }
.vdb-auth__testing-permission-editor { display: grid; grid-template-columns: minmax(145px,.65fr) minmax(145px,.65fr) minmax(220px,1.4fr); gap: 10px; margin-top: 12px; }
.vdb-auth__testing-permission-editor textarea { min-height: 44px; resize: vertical; }
.vdb-auth__testing-permission-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

@media (max-width: 1180px) {
  .vdb-auth--logged-in .vdb-auth__workspace { grid-template-columns: 250px minmax(0,1fr); overflow-y: auto; }
  .vdb-auth__content { overflow: visible; }
  .vdb-auth__context-rail { grid-column: 2; overflow: visible; padding: 0 24px 80px; border-left: 0; background: var(--vdb-soft); }
  .vdb-auth--logged-in .vdb-auth__brand { right: 24px; }
}

@media (max-width: 900px) {
  .vdb-auth--logged-in .vdb-auth__app-header { grid-template-columns: auto auto minmax(0,1fr) auto; padding: 0 12px; }
  .vdb-auth__sidebar-toggle { display: block; }
  .vdb-auth__header-location { display: none; }
  .vdb-auth--logged-in .vdb-auth__workspace { grid-template-columns: minmax(0,1fr); }
  .vdb-auth__sidebar { position: fixed; z-index: 42; top: 70px; bottom: 0; left: 0; width: min(310px, 86vw); transform: translateX(-105%); transition: transform .22s ease; box-shadow: 16px 0 38px rgba(9,23,35,.2); }
  .vdb-auth--sidebar-open .vdb-auth__sidebar { transform: translateX(0); }
  .vdb-auth__sidebar-backdrop { position: fixed; z-index: 41; inset: 70px 0 0; width: 100%; border: 0; background: rgba(7,18,28,.48); }
  .vdb-auth--sidebar-open .vdb-auth__sidebar-backdrop { display: block; }
  .vdb-auth__context-rail { grid-column: 1; padding-inline: 16px; }
  .vdb-auth__content { padding: 18px 16px 32px; }
  .vdb-auth--logged-in .vdb-auth__brand { display: none; }
}

@media (max-width: 760px) {
  .vdb-auth:not(.vdb-auth--logged-in) { display: block; overflow-y: auto; }
  .vdb-auth:not(.vdb-auth--logged-in) .vdb-auth__left { width: 100%; min-width: 0; }
  .vdb-auth:not(.vdb-auth--logged-in) .vdb-auth__left-inner { padding: 34px 22px; }
  .vdb-auth:not(.vdb-auth--logged-in) .vdb-auth__logo-wrap { margin-bottom: 38px; }
  .vdb-auth.vdb-auth--login-start .vdb-auth__left-inner { padding: 28px 18px; }
  .vdb-auth.vdb-auth--login-start .vdb-auth__logo-wrap { margin-bottom: 24px; }
  .vdb-auth:not(.vdb-auth--logged-in) .vdb-auth__right { display: none; }
  .vdb-auth__account-trigger > span:nth-child(2) { display: none; }
  .vdb-auth__header-help { display: none; }
  .vdb-auth--logged-in .vdb-auth__profile { padding: 18px 14px; }
  .vdb-auth__grid2, .vdb-auth__grid3 { flex-direction: column; gap: 0; }
  .vdb-auth__data-list { overflow: visible; border: 0; border-radius: 0; }
  .vdb-auth__data-row--head { display: none; }
  .vdb-auth__data-row--object, .vdb-auth__data-row--fireunit { grid-template-columns: 1fr; margin-bottom: 12px; overflow: hidden; border: 1px solid var(--vdb-line); border-radius: 10px; }
  .vdb-auth__data-row:not(.vdb-auth__data-row--head):nth-child(n) { background: #fff; }
  .vdb-auth__data-cell { display: grid; grid-template-columns: minmax(90px,.7fr) minmax(0,1.3fr); gap: 10px; padding: 9px 11px; }
  .vdb-auth__data-cell::before { content: attr(data-label); color: #7b8893; font-size: 10px; font-weight: 900; letter-spacing: .035em; text-transform: uppercase; }
  .vdb-auth__data-cell + .vdb-auth__data-cell { border-top: 1px solid #edf0f2; border-left: 0; }
  .vdb-auth__row-actions { justify-content: flex-start; }
  .vdb-auth__testing-permission-heading { display: grid; }
  .vdb-auth__testing-permission-status { justify-self: start; }
  .vdb-auth__testing-permission-editor { grid-template-columns: 1fr; }
  .vdb-auth__join-request-role { flex-basis: 100%; max-width: none; }
  .vdb-auth__join-request-controls .vdb-auth__btn { flex: 1 1 120px; }
}

@media (max-width: 560px) {
  .vdb-auth:not(.vdb-auth--logged-in) .vdb-auth__registration-profile .vdb-auth__inputbox { grid-template-columns: 1fr; }
  .vdb-auth:not(.vdb-auth--logged-in) .vdb-auth__registration-profile .vdb-auth__field:last-child { grid-column: auto; }
  .vdb-auth__section-tab { min-width: 104px; padding-inline: 14px; }
}

@media (min-width: 761px) and (max-height: 700px) {
  .vdb-auth.vdb-auth--login-start .vdb-auth__left-inner { padding-block: 24px; }
  .vdb-auth.vdb-auth--login-start .vdb-auth__logo-wrap { margin-bottom: 20px; }
  .vdb-auth.vdb-auth--login-start .vdb-auth__logo { max-height: 64px; }
  .vdb-auth__guest-slider { gap: 16px; padding-block: 20px 16px; }
  .vdb-auth__slide { gap: 8px; }
}

.vdb-auth .vdb-detected-device-picker { min-width: 0; }
.vdb-auth .vdb-detected-device-picker select,
.vdb-auth .vdb-detected-device-picker input { width: 100%; max-width: 100%; min-width: 0; box-sizing: border-box; }
.vdb-auth .vdb-detected-device-picker select { text-overflow: ellipsis; }
.vdb-auth .vdb-detected-device-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 14px; }
.vdb-auth .vdb-detected-device-actions .vdb-auth__btn { flex: 0 0 auto; min-height: 44px; }
.vdb-auth #vdb-detected-device-list-status { flex: 1 1 220px; overflow-wrap: anywhere; }
.vdb-auth #vdb-detected-device-help { margin-top: 16px; overflow-wrap: anywhere; }

@media (prefers-reduced-motion: reduce) {
  .vdb-auth *, .vdb-auth *::before, .vdb-auth *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
