﻿/* VARIABLES */
/* GLOBAL */
body, html {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

* {
  font-family: "Montserrat", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
}

/* LAYOUT */
#page-container {
  display: flex;
  height: 100%;
}

#page-sidebar {
  width: 264px;
  transition: width 200ms ease-in-out;
  background: #39505D;
  color: white;
  position: relative;
  user-select: none;
}
#page-sidebar.collapsed {
  width: 80px;
}
#page-sidebar.collapsed #page-sidebar-button {
  transform: rotate(180deg);
}
#page-sidebar.collapsed #page-sidebar-logo #page-sidebar-logo-xl {
  opacity: 0;
}
#page-sidebar.collapsed #page-sidebar-logo #page-sidebar-logo-xs {
  opacity: 1;
}
#page-sidebar.collapsed .sidebar-text {
  display: none;
}
#page-sidebar.collapsed .sidebar-item-chevron {
  position: absolute;
  top: 12px;
  right: -13px;
  background: #39505D;
  border-radius: 12px;
}
#page-sidebar.collapsed .sidebar-item-chevron svg {
  fill: white;
}
#page-sidebar.collapsed ul ul {
  background: #39505D;
  border-radius: 8px;
  border: 1px solid #39505D;
  position: relative;
  right: -75px;
  top: -58px;
  width: 240px;
  padding: 0 !important;
}
#page-sidebar.collapsed ul ul li a {
  margin-bottom: 0;
}
#page-sidebar.collapsed ul ul li .sidebar-text {
  display: block;
  color: white !important;
}
#page-sidebar.collapsed ul ul li:hover .sidebar-text {
  display: block;
  color: #39505D !important;
}
#page-sidebar #page-sidebar-logo {
  width: 175px;
  height: 75px;
  position: relative;
}
#page-sidebar #page-sidebar-logo #page-sidebar-logo-xl {
  position: absolute;
  opacity: 1;
}
#page-sidebar #page-sidebar-logo #page-sidebar-logo-xs {
  position: absolute;
  opacity: 0;
}
#page-sidebar #page-sidebar-button {
  position: absolute;
  right: -12px;
  top: 70px;
  border: 1px solid #E0E0E0;
  background: #39505D;
  border-radius: 12px;
  width: 24px;
  height: 24px;
  color: #E0E0E0;
  display: flex;
  align-items: center;
  align-content: center;
  transition: transform 200ms ease-in-out;
  padding: 0;
}
#page-sidebar #page-sidebar-button span {
  margin-left: 1px;
  font-size: 12px;
}
#page-sidebar ul {
  list-style: none;
  padding: 0;
}
#page-sidebar ul > li {
  display: flex;
  flex-direction: column;
  position: relative;
}
#page-sidebar ul > li:hover > a {
  background: white;
  color: #39505D;
}
#page-sidebar ul > li:hover > a svg {
  fill: #39505D;
}
#page-sidebar ul > li:hover > span svg {
  fill: #39505D;
}
#page-sidebar ul > li a {
  display: flex;
  flex-direction: row;
  align-items: center;
  height: 48px;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 8px;
  color: white;
  text-decoration: none;
}
#page-sidebar ul > li a svg {
  fill: white;
}
#page-sidebar ul > li ul.collapse ~ span {
  transform: rotate(180deg);
}
#page-sidebar ul > li > .sidebar-item-chevron {
  position: absolute;
  right: 6px;
  top: 11px;
}

#page-wrapper {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

#page-header {
  height: 56px;
  border-bottom: 1px solid #E0E0E0;
  display: flex;
  align-items: center;
  flex-direction: row-reverse;
}

#page-content {
  flex-grow: 1;
  overflow-y: scroll;
  overflow-x: hidden;
}

/* COMPONENTS */
/* CARDS */
.card {
  border-radius: 12px;
  border: none;
  box-shadow: 0px 2px 30px 0px rgba(0, 0, 0, 0.031372549);
}

/* FORMS */
.form-control {
  border-color: #E0E0E0;
  border-radius: 8px;
  background: #F7F7F7;
  font-size: 16px;
  line-height: 20px;
  color: #848484;
  padding: 12px;
}

/* LINKS */
a[href] {
  text-decoration: none;
  color: #82BC48;
  font-weight: bold;
}

/* BUTTONS */
.btn {
  border-color: #E0E0E0;
  border-radius: 8px;
  height: 44px;
  font-size: 16px;
  padding: 12px;
  line-height: 20px;
}

.btn-primary {
  background: #82BC48;
}

.btn-secondary {
  background: #39505D;
  color: #F9F6F1;
}

.btn-default {
  background: #F7F7F7;
}

.catalog-layout-toggle {
  border: none;
  background: transparent;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.catalog-layout-toggle svg {
  fill: #A8AABC;
}

.catalog-layout-toggle.active svg {
  fill: #39505D;
}

.catalog-status {
  border-radius: 12px;
}

.navitation-panel button {
  border: 1px solid #E0E0E0;
  background: #FFFFFF;
  border-radius: 8px;
  width: 40px;
  height: 40px;
}

.navitation-panel button[disabled] {
  opacity: 0.45;
}

.navitation-panel button svg {
  fill: #39505D;
}

.catalog-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(24, 37, 45, 0.4);
  z-index: 1040;
}

.catalog-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 1050;
}

.catalog-modal-dialog {
  width: min(100%, 560px);
  background: #FFFFFF;
  border-radius: 16px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.16);
  overflow: hidden;
}

.catalog-modal-header,
.catalog-modal-footer {
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.catalog-modal-header {
  border-bottom: 1px solid #E0E0E0;
}

.catalog-modal-body {
  padding: 24px;
}

.catalog-modal-footer {
  border-top: 1px solid #E0E0E0;
  justify-content: flex-end;
}

.catalog-modal-close {
  border: none;
  background: transparent;
  font-size: 28px;
  line-height: 1;
  color: #6C6C6C;
}

.color-shadow {
  color: #A8AABC;
}

.color-default {
  color: #6C6C6C;
}

.color-primary {
  color: #82BC48;
}

.fs-8px {
  font-size: 8px;
}

.fs-10px {
  font-size: 10px;
}

.fs-12px {
  font-size: 10px;
}

.fs-14px {
  font-size: 14px;
}

.fs-16px {
  font-size: 16px;
}

.fs-18px {
  font-size: 18px;
}

.fs-semibold {
  font-weight: 600;
}

.fs-normal-link {
  color: #82BC48;
}

.step-point {
  fill: none;
  stroke: #D5D7DA;
}

.step-line {
  border: 2px solid #D5D7DA;
  margin-top: 20px;
}

.active .step-point {
  fill: none;
  stroke: #007BFF;
}
.active .step-line {
  border: 2px solid #007BFF;
}

.register-step-indicator {
  cursor: pointer;
}
.register-step-indicator.register-step-current .step-point, .register-step-indicator.register-step-completed .step-point {
  stroke: #39505D;
}
.register-step-indicator.register-step-current .step-line, .register-step-indicator.register-step-completed .step-line {
  border-color: #39505D;
}

.register-option-card {
  cursor: pointer;
  border: 1px solid #E5E7EB;
  transition: border-color 150ms ease-in-out, box-shadow 150ms ease-in-out;
}
.register-option-card:has(input:checked) {
  border-color: #39505D;
  box-shadow: 0 0 0 2px rgba(57, 80, 93, 0.12);
}

.register-password-strength-bars {
  display: flex;
  gap: 8px;
}

.register-password-strength-bar {
  display: block;
  height: 8px;
  flex: 1;
  border-radius: 999px;
  background: #E5E7EB;
  transition: background-color 150ms ease-in-out;
}

.register-password-strength-indicator[data-strength="1"] .register-password-strength-bar[data-active=true] {
  background: #D9534F;
}

.register-password-strength-indicator[data-strength="2"] .register-password-strength-bar[data-active=true] {
  background: #F0AD4E;
}

.register-password-strength-indicator[data-strength="3"] .register-password-strength-bar[data-active=true] {
  background: #5BC0DE;
}

.register-password-strength-indicator[data-strength="4"] .register-password-strength-bar[data-active=true] {
  background: #82BC48;
}

.register-otp-info {
  border: 1px solid #E5E7EB;
  background: #F9FBFD;
}

.register-otp-qr-frame {
  border: 1px solid #E5E7EB;
  background: linear-gradient(180deg, #FFFFFF 0%, #F8FBFF 100%);
}

[data-otp-qr-container] {
  min-height: 244px;
  align-items: center;
}

[data-otp-qr-container] img {
  display: block;
  width: 220px !important;
  height: 220px !important;
  max-width: 100%;
  background: #FFFFFF;
  border: 1px solid #D7DEE7;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(57, 80, 93, 0.08);
  image-rendering: crisp-edges;
}

/* PAGES */
/* LOGIN */
#page-login-panel-1 {
  background: linear-gradient(#87D935, #3B5621);
  border-radius: 8px;
}
