/* Brigama form layout 2026-10-18. Authentication and stored data are unchanged. */
html { min-height: 100%; }
body.p-3 {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  padding: 0 !important;
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif;
  color: #24343b;
  background: #edf1f3 url("../images/hand-pressing-security-button-touch-screen.jpg") center / cover fixed;
}
*, *::before, *::after { box-sizing: border-box; }
.body-background, .about-body-background, .download-body-background,
.login-body-background, .registration-body-background, .account-body-background,
.general-body-background {
  display: block;
  flex: 1 0 auto;
  width: 100%;
  min-width: 0;
  min-height: 0 !important;
  background: transparent;
}
.general-body-background { flex: 0 0 auto; }
.main-general-container { flex: 1 0 auto; min-width: 0; }
.main-wrap, .download-main-wrap { margin-top: 32px; margin-bottom: 32px; padding: 32px; font-size: 16px; line-height: 1.6; }
.index_sections, .index-main-container, .content-first { font-size: 16px; }
.index_sections { max-width: 100%; }
.index_sections h1, .download-main-wrap h1 { font-size: 28px; line-height: 1.25; }
.index_sections h2, .download-main-wrap h2 { font-size: 24px; line-height: 1.3; }
header { position: relative; z-index: 20; }
.navbar .container-fluid { max-width: 1440px; padding: 10px 20px; gap: 12px; }
.navbar .logo-name-user { margin: 0 20px 0 0; min-width: 0; }
#body-img-logo { width: 64px; height: 44px; object-fit: cover; }
#company-name .company-name { font-size: 26px !important; line-height: 1.2; }
.navbar .nav-item, .navbar .color-general { font-size: 15px !important; line-height: 1.4; }
.navbar .navbar-nav { gap: 2px; min-width: 0; }
.navbar .navbar-toggler { min-height: 44px; border-color: rgb(255 255 255 / 50%); }
.navbar .navbar-toggler-icon { filter: brightness(0) invert(1); }
.navbar .selectpicker { min-height: 36px; font-size: 14px; }
.connected-username { margin: 16px 20px 0; padding: 10px 14px; font-size: 15px; overflow-wrap: anywhere; }
.connected-username > div { display: inline; }
.company-name-container { min-width: 0; flex-wrap: wrap; }

/* Older styles used fixed heights and translated absolute positions at desktop sizes. */
.login-form-container, .main-reg-container, .main-account-form, .general-form {
  position: relative !important;
  inset: auto !important;
  transform: none !important;
  width: calc(100% - 32px) !important;
  max-width: 640px !important;
  min-width: 0;
  height: auto !important;
  min-height: 0;
  max-height: none !important;
  margin: 32px auto !important;
  padding: 24px;
  border: 1px solid #d3dee2;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 6px 24px rgb(22 40 48 / 12%);
  transition: none;
  color: #24343b;
  font-size: 16px;
  text-align: left;
  overflow: visible;
}
.login-form-container { max-width: 500px !important; }
.main-account-form { display: block; max-width: 1160px !important; }
.general-form { display: block; max-width: 1400px !important; }
.main-account-container, .main-general-container, .cards-container-size { width: 100%; min-width: 0; }
.form-reg, .login-form-container > .container, .account-detail-card-fill-form {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: none !important;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  text-align: left;
  font-size: 16px;
  line-height: 1.5;
}
.main-reg-h2, .card-header-names, .picture-card-name {
  margin: 0 0 20px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #24343b;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  text-shadow: none;
  overflow-wrap: anywhere;
}
.login-form-container .imgcontainer { gap: 12px; justify-content: flex-start; margin: 0 0 24px; }
#login-img-logo { width: 64px; max-width: 64px; height: 44px; margin: 0; object-fit: cover; border-radius: 6px; }
#login-company-name { margin: 0; font-size: 24px !important; line-height: 1.2; color: #24343b; text-shadow: none; }
.login-form-container br { display: none; }
:is(.login-form-container, .form-reg, .account-detail-card, #user-form) label {
  display: block;
  width: auto;
  margin: 16px 0 6px;
  padding: 0;
  color: #24343b;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
:is(.login-form-container, .form-reg, .account-detail-card, #user-form) input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
:is(.login-form-container, .form-reg, .account-detail-card, #user-form) select,
:is(.login-form-container, .form-reg, .account-detail-card, #user-form) textarea {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 44px;
  height: auto;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid #aebfc6;
  border-radius: 5px;
  background: #fff;
  color: #24343b;
  font-family: inherit;
  font-size: 16px;
  line-height: 1.4;
}
:is(.login-form-container, .form-reg, .account-detail-card, #user-form) input:read-only { background: #f0f4f5; }
:is(.login-form-container, .form-reg, .account-detail-card, #user-form) :is(input, textarea, select):focus-visible {
  outline: 2px solid #16836c;
  outline-offset: 2px;
}
.form-error { display: block; max-width: 100%; overflow-wrap: anywhere; font-size: 13px; line-height: 1.4; }
.form-error:empty { display: none; }
.psw-lable-scndpart { display: block; margin: 8px 0 0; color: #596c75; font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.password-requirements { display: block; margin: 8px 0; color: #596c75; font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.login-button, .general-form-button, .account-form-button, .cancelbtn, .bt-delete-width {
  min-height: 44px;
  height: auto !important;
  margin: 16px 0 0;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: 5px;
  font-size: 16px !important;
  line-height: 1.4;
  white-space: normal;
  overflow-wrap: anywhere;
  box-shadow: none;
}
.login-button { background: #088465; }
.general-form-button, .account-form-button { background: #344f59; }
.login-form-container .form-check { display: flex; align-items: center; gap: 10px; margin: 16px 0; padding: 0; }
.login-form-container .form-check input { width: 18px; height: 18px; margin: 0; float: none; }
.login-form-container .form-check label { margin: 0; }
.cancle-container { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 16px; padding: 16px 0 0; border-top: 1px solid #d3dee2; background: transparent !important; }
.cancelbtn { width: auto; min-width: 112px; margin: 0; background: #d63c39; color: #fff; }
.register-forgot-container { min-width: 0; margin: 0 0 0 auto; gap: 6px; font-size: 14px; }
.login-announcment { margin-top: 20px; font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
.login-announcment p { margin: 0; }

.picture-form-container {
  position: static !important;
  inset: auto !important;
  transform: none !important;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  align-items: start;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0;
  margin: 0 !important;
  gap: 24px;
}
.picture-form { width: 100%; height: auto; min-width: 0; padding: 0; border: 0; background: transparent; text-align: center; }
.picture-form .card-body { padding: 0; }
.img-account-profile { display: block; width: 128px; height: 128px; max-width: 100%; object-fit: cover; margin: 0 auto 16px; }
.account-detail-card { min-width: 0; width: 100% !important; height: auto; padding: 0 0 0 24px; border: 0; border-left: 1px solid #d3dee2; border-radius: 0; background: transparent; }
.account-detail-card-fill-form .row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 12px; margin: 0; }
.account-detail-card-fill-form .col { width: auto; min-width: 0; margin: 0; padding: 0; }
.account-detail-card .input-acc-text { margin: 0; }
.account-form-button { width: 100%; }

.general-form > .main.row { display: block; min-width: 0; width: 100%; margin: 0; }
.general-form > .main.row > * { max-width: 100%; padding-inline: 0; }
.general-form #toggle-form-btn { width: 100%; margin: 0 0 20px; }
#new-account-form { min-width: 0; margin-bottom: 24px !important; }
#user-form { width: 100%; min-width: 0; }
#user-form .input-group { min-width: 0; gap: 8px; margin-bottom: 16px; }
#user-form .input-group > .form-control { flex: 1 1 160px; width: 1%; border-radius: 5px; }
#user-form .input-group > label:empty { display: none; }
#user-form .input-group-prepend, #user-form .input-group-append { max-width: 100%; min-width: 0; overflow-wrap: anywhere; font-size: 14px; }
#user-form .card-body { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 12px; padding: 8px 0; }
#user-form .custom-checkbox { display: flex; gap: 10px; align-items: center; min-width: 0; }
#user-form .custom-checkbox input { flex: 0 0 18px; width: 18px; height: 18px; margin: 0; accent-color: #088465; }
#user-form .custom-control-input { position: static; z-index: auto; display: inline-block; opacity: 1; visibility: visible; appearance: auto; }
#user-form .custom-checkbox label { margin: 0; font-weight: 400; }
#user-form .custom-control-label::before, #user-form .custom-control-label::after { content: none; display: none; }
#generatedKey-img { align-items: center; flex-wrap: wrap; }
#generatedKey-img .img-size { width: 44px; height: 44px; margin: 0; padding: 4px; object-fit: contain; }
#generatedKey-img > div:last-child { flex: 0 1 auto; }
#generatedKey-img .generate-button { width: auto; min-width: 128px; margin: 0; padding: 10px 16px; border-radius: 5px; }
#user-form textarea { min-height: 104px; resize: vertical; }
#user-form .input-group-text { font-size: 14px; white-space: normal; }
.general-table-container { width: 100% !important; max-width: 100% !important; max-height: 60vh; overflow: auto; }
.general-table-container table { width: 100%; min-width: 860px; table-layout: fixed; border-collapse: collapse; }
.general-table-container :is(th, td) { width: auto; max-width: none; padding: 12px; font-size: 14px; line-height: 1.4; vertical-align: middle; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; border-bottom: 1px solid #d3dee2; }
.general-table-container th { background: #edf3f4; font-weight: 600; }
.general-table-container :is(th, td):first-child { width: 52px; }
.general-table-container :is(th, td):last-child { width: 112px; }
.general-table-container :is(td, a).input-gen-text { font-size: 14px; }
.general-table-container .gen-url-size { display: block; width: auto; max-width: 100%; }
.general-table-container .bt-delete-width { width: auto; max-width: 100%; min-height: 36px; margin: 0; padding: 7px 12px; color: #a42929; border-color: #dbb4b4; background: #fff; font-size: 14px !important; }

#myModal, #myModalgenerate {
  position: fixed;
  inset: 0;
  transform: none;
  z-index: 1055;
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  padding: 20px;
  overflow: auto;
  border-radius: 0;
  background: rgb(15 29 37 / 55%);
  font-size: 16px;
}
#myModal .modal-content, #myModalgenerate .generate-modal-content {
  width: 100%;
  max-width: 560px;
  height: auto;
  margin: 10vh auto 24px;
  padding: 24px;
  border: 1px solid #d3dee2;
  border-radius: 8px;
  background: #fff;
  overflow-wrap: anywhere;
  text-align: left;
}
.footer-wrap { position: static; flex: 0 0 auto; width: 100%; margin-top: 0; padding: 24px 20px; border-top: 1px solid #ced9df; background: rgb(255 255 255 / 94%); font-size: 14px; line-height: 1.6; }
.footer-wrap h3 { margin-bottom: 12px; font-size: 18px; }
.footer-wrap .wrap-kontakt-ul { margin: 0; padding: 0; list-style: none; }
.footer-wrap .center-infotext { padding-top: 16px; }
.footer-wrap .wrap-kontakt-ul, .footer-wrap .kontaktai { color: inherit; }
.footer-wrap .go-home-link a { color: #0b6f63; }
#myModal .close, #myModalgenerate .close { float: right; width: 40px; height: 40px; margin: -12px -12px 8px 12px; border: 0; background: transparent; color: #344f59; font-size: 28px; line-height: 1; }
button:hover { opacity: 1; }

@media (max-width: 1199px) {
  .navbar .container-fluid { padding: 10px 16px; }
  .navbar .navbar-nav { align-items: stretch; }
  .navbar .navbar-collapse { margin-top: 12px; }
}
@media (max-width: 800px) {
  .picture-form-container { grid-template-columns: minmax(0, 1fr); }
  .picture-form { display: grid; justify-items: center; padding-bottom: 20px; border-bottom: 1px solid #d3dee2; }
  .picture-form .card-body { width: 100%; max-width: 280px; }
  .account-detail-card { padding: 0; border-left: 0; }
}
@media (max-width: 600px) {
  body.p-3 { background-attachment: scroll; }
  .navbar .logo-name-user { margin-right: 0; }
  #body-img-logo { width: 48px; height: 34px; }
  #company-name .company-name { font-size: 20px !important; }
  .navbar .container-fluid { gap: 8px; padding: 10px 12px; }
  .navbar .navbar-brand { display: none; }
  .login-form-container, .main-reg-container, .main-account-form, .general-form { width: calc(100% - 24px) !important; margin: 20px auto !important; padding: 20px 16px; }
  .main-reg-h2, .card-header-names, .picture-card-name { font-size: 20px; }
  #login-company-name { font-size: 20px !important; }
  #login-img-logo { width: 52px; height: 36px; }
  .register-forgot-container { margin-left: 0; width: 100%; }
  .psw-forgot { margin-left: 0; }
  .cancle-container { align-items: flex-start; }
  .account-detail-card-fill-form .row { grid-template-columns: minmax(0, 1fr); }
  #generatedKey-img > div:last-child, #generatedKey-img .generate-button { width: 100%; }
  .footer-wrap { padding: 24px 16px; }
  .main-wrap, .download-main-wrap { padding: 20px 16px; margin-top: 20px; }
}
