
html{
    -webkit-text-size-adjust:100%;
    -ms-text-size-adjust:100%;
    font-family: "Open Sans", sans-serif;
    font-optical-sizing: auto;
}
html {
  box-sizing: border-box;
  scroll-behavior: smooth;
}

*, *:before, *:after {
  box-sizing: inherit;
}

body{
    margin:0;
    font-family: "Open Sans", sans-serif;
    font-optical-sizing: auto;
    color: rgb(51,51,51);
    font-size: 16px;
}
article,aside,details,figcaption,figure,footer,header,hgroup,main,menu,nav,section,summary{
    display:block
}
audio,canvas,progress,video{
    display:inline-block;
    vertical-align:baseline
}
audio:not([controls]){
    display:none;
    height:0
}
[hidden],template{
    display:none
}
a{
    background-color:transparent;
    text-decoration: none;
}
a:active,a:hover{
    outline:0
}

a{
    font-weight:normal;
    color:rgb(51,51,51);
    text-decoration:none;
}

a:hover{
    color:inherit;
}
abbr[title]{
    border-bottom:1px dotted
}
b,strong{
    font-weight:700
}
dfn{
    font-style:italic
}
h1{
    margin:.67em 0;
    font-size:2em
}
mark{
    color:#000;
    background:#ff0
}
small{
    font-size:80%
}
sub,sup{
    position:relative;
    font-size:75%;
    line-height:0;
    vertical-align:baseline
}
sup{
    top:-.5em
}
sub{
    bottom:-.25em
}
img{
    border:0;
    max-width: 100%;
}
svg:not(:root){
    overflow:hidden
}
figure{
    margin:1em 40px
}
hr{
    height:0;
    -webkit-box-sizing:content-box;
    -moz-box-sizing:content-box;
    box-sizing:content-box
}
pre{
    overflow:auto
}
code,kbd,pre,samp{
    font-family:monospace,monospace;
    font-size:1em
}
button,input,optgroup,select,textarea{
    margin:0;
    font:inherit;
    color:inherit
}
button{
    overflow:visible
}
button,select{
    text-transform:none
}
button,html input[type=button],input[type=reset],input[type=submit]{
    -webkit-appearance:button;
    cursor:pointer
}
button[disabled],html input[disabled]{
    cursor:default
}
button::-moz-focus-inner,input::-moz-focus-inner{
    padding:0;
    border:0
}
input{
    line-height:normal;
}
input[type=checkbox],input[type=radio]{
    -webkit-box-sizing:border-box;
    -moz-box-sizing:border-box;
    box-sizing:border-box;
    padding:0
}
input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{
    height:auto
}
input[type=search]{
    -webkit-box-sizing:content-box;
    -moz-box-sizing:content-box;
    box-sizing:content-box;
    -webkit-appearance:textfield
}
input[type=search]::-webkit-search-cancel-button,input[type=search]::-webkit-search-decoration{
    -webkit-appearance:none
}
fieldset{
    padding:.35em .625em .75em;
    margin:0 2px;
    border:1px solid silver
}
legend{
    padding:0;
    border:0
}
textarea{
    overflow:auto
}
optgroup{
    font-weight:700
}
table{
    border-spacing:0;
    border-collapse:collapse
}
td,th{
    padding:0
}

/* Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Firefox */
input[type=number] {
  -moz-appearance: textfield;
}

img{
    display:block;
    margin:0 auto;
}

.kufam{
    font-family: "Kufam", sans-serif;
    font-optical-sizing: auto;
}

.lightbox{
    backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  position:fixed;
  top:0;
  left:0;
  right:0;
  bottom:0;
  z-index:2000;
  display:none;
}

.lightbox .lightboxContent{
    position:fixed;
    min-width: 80%;
    max-width: 80%;
    max-height:80%;
    top:50%;
    left:50%;
    transform: translate(-50%,-50%);
    border:1px solid rgba(51,51,51,0.2);
    background-color:rgb(255,255,255);
    border-radius:12px;
    overflow:hidden;
}

.lightbox .lightboxContent .message{
    padding:20px;
    text-align: center;
}

#failed-login-lightbox .lightboxContent .message{
    color:rgb(200,0,0);
    font-size:20px;
}

.pageWrapper{
    position:relative;
    z-index:500;
    padding:20px;
}

.pageBackground{
    background-size: cover;
    position:fixed;
    z-index:100;
    top:0;
    left:0;
    right:0;
    bottom:0;
    background-position: center bottom;
    background-repeat: no-repeat;
}

.loginPage{
    position:relative;
    width:100vw;
    height:100vh;
    overflow:hidden;
}

.loginPage .loginBox{
    width:80%;
    margin:0 auto;
    margin-top:40px;
    background: rgb(255,255,255);
    border-radius:12px;
    border:1px solid rgb(51,51,51);
    padding:20px;
}

.loginPage .loginBox .logoWrap{
    max-width: 150px;
    margin:0 auto;
    margin-bottom:50px
}

.loginPage .inputWrap{
    margin-bottom:25px;
    position:relative;
}

.loginPage .inputWrap input{
    width:100%;
    outline:none;
    border-radius:99px;
    padding:20px;
    background-color:rgba(51,51,51,0.02);
    border:1px solid rgb(34,109,234);
}

.loginPage .inputWrap input:focus{
    background-color:rgba(34,109,234,0.2);
    border:1px solid rgb(34,109,234);
}

.loginPage .inputWrap .show{
    position:absolute;
    top:50%;
    right:0%;
    transform: translateY(-50%);
    padding:20px;
    color:rgb(255,255,255);
    border-radius:99px;
    border:1px solid rgb(34,109,234);
    background: linear-gradient(90deg,rgb(34,109,234) 0%, rgb(23,90,203) 100%);
}

.loginPage .inputWrap .button{
    padding:20px;
    color:rgb(255,255,255);
    border-radius:99px;
    border:1px solid rgb(34,109,234);
    background: linear-gradient(90deg,rgb(34,109,234) 0%, rgb(23,90,203) 100%);
    text-align: center;
    font-size:22px;
}

.loginPage .page{
    position:absolute;
    top:100%;
    left:0;
    width:100%;
    height:100%;
    background-image:linear-gradient(180deg,rgb(255,255,255) 0%, rgb(210,223,246) 100%);
    z-index:500;
    transition: top ease 0.5s;
    padding:20px;
    padding-top:45px;
}

.loginPage .page.active{
    z-index:1000;
    top:0%;
}


.loginPage .page .logoWrap{
    max-width: 150px;
    margin:0 auto;
    margin-bottom:20px;
    margin-top:10px;
}

.loginPage .page .title{
    text-align: center;
    margin-bottom:20px;
    font-size:30px;
    font-weight:600;
}

.loginPage .page .intro{
    font-size:18px;
    color:rgba(51,51,51,0.5);
    text-align: center;
    margin-bottom:10px;
}

.loginPage .page .loginIllustration{
    width:80%;
    margin:0 auto;
}

.loginPage .page .buttons{
    margin-top:30px;
}

.loginPage .page .buttons .button{
    margin-bottom:12px;
}


.button{
    display:block;
    padding:12px;
    border-radius: 8px;
    text-align: center;
}

.button .iconWrap{
    display: inline-block;
    vertical-align: middle;
    width:18px;
    margin-right:4px;
}

.button .text{
    display: inline-block;
    vertical-align: middle;
}

.blueButton{
    border:1px solid rgb(34,109,234);
    background: linear-gradient(90deg,rgb(34,109,234) 0%, rgb(23,90,203) 100%);
    color:rgb(255,255,255);
}

.redButton{
    border:1px solid rgb(200,0,0);
    color:rgb(255,255,255);
    background-color: rgb(200,0,0);
}

.whiteButton{
    border:1px solid rgb(23,90,203);
    color:rgb(23,90,203);
    background-color:rgb(255,255,255);
}

.loginPage .promos{
    font-size:10px;
    display:grid;
    gap:6px;
    grid-template-columns: repeat(2, 1fr);
    padding:12px;
    border-radius:10px;
    background-color:rgb(255,255,255);
    border:1px solid rgba(51,51,51,0.05);
    box-shadow: 0px 0px 2px rgba(0,0,0,0.1);
}

.loginPage .promos .promo{
    font-size:0px;
}

.loginPage .promos .promo .imageWrap{
    width:30px;
    display: inline-block;
    vertical-align: top;
}

.loginPage .promos .promo .textWrap{
    font-size:11px;
    display: inline-block;
    vertical-align: top;
    width:calc(100% - 30px);
    padding-left: 10px;
}

.loginPage .promos .promo .textWrap .textTitle{
    font-weight:600;
}

.loginPage .promos .promo .textWrap .textText{
    color:rgb(51,51,51,0.5);
}

.bottomMenu{
    position:fixed;
    bottom:0;
    left:0;
    right:0;
    background-color: rgb(255,255,255);
    border-top:1px solid rgb(51,51,51,0.2);
    padding:10px;
    display:grid;
    gap:12px;
    z-index:3000;
    font-size:12px;
    grid-template-columns: repeat(5, 1fr);
    padding-bottom:40px;
}

#app-menu{
    font-size:10px;
}

.bottomMenu.notLogged{
    grid-template-columns: repeat(3, 1fr);
}

.bottomMenu .item{
    text-align: center;
}

.bottomMenu .item .iconWrap{
    margin:0 auto;
    margin-bottom:6px;
}

.bottomMenu .item .iconWrap .colored{
    display:none;
}

.bottomMenu .item.active .iconWrap .colored{
    display:block;
}

.bottomMenu .item.active .iconWrap .plain{
    display:none;
}

.bottomMenu .item.active .text{
    color:rgb(23,90,203);
}




.appPages{
    position:relative;
    width:100vw;
    height:100vh;
    overflow:hidden;
}

.appPages .page{
    position:absolute;
    top:100%;
    left:0;
    width:100%;
    height:100%;
    background-image:linear-gradient(180deg,rgb(255,255,255) 0%, rgb(210,223,246) 100%);
    z-index:500;
    transition: top ease 0.5s;
    overflow-y:scroll;
    padding-bottom:100px;
}

.appPages .page.active{
    z-index:1000;
    top:0%;
}


.appPageTitle{
    padding:20px;
    position:relative;
    color:rgb(255,255,255);
    background: linear-gradient(0deg, rgb(23,90,203) 0%, rgb(34,109,234) 100%);
    padding-top:45px;
    font-size:20px;
    font-weight:600;
}

.homeTitle{
    padding:20px;
    position:relative;
    color:rgb(255,255,255);
    background: linear-gradient(0deg, rgb(23,90,203) 0%, rgb(34,109,234) 100%);
    padding-top:45px;
}

.homeTitle .smallText{
    font-size:16px;
}

.homeTitle .bigText{
    font-size:24px;
    font-weight: 700;
    margin-top:10px;
}

.buttonsList{
    background-color:rgb(242,244,248);
    padding:20px;
}

.buttonsList .list{
    margin-bottom:22px;
}

.buttonsList .listWrap .title{
    font-weight:700;
    margin-bottom: 6px;
}

.buttonsList .listWrap .listItem{
    background-color:rgb(255,255,255);
    border-radius:8px;
    padding:12px;
    position:relative;
    display:flex;
    align-items: center;
    gap:10px;
    box-shadow:0px 0px 2px rgba(0,0,0,0.1);
    margin-bottom:3px;
}

.buttonsList .listWrap .listItem .iconWrap{
    width:40px;
    border-radius:4px;
    flex-shrink: 0;
    padding:5px;
    aspect-ratio: 1/1;
    position:relative;
    overflow: hidden;
}

.buttonsList .listWrap .listItem .iconWrap img{
    position: absolute;
    top:50%;
    left:50%;
    transform: translate(-50%,-50%);
    width:30px;
    z-index: 200;
}

.buttonsList .listWrap .listItem .iconWrap .iconBackground{
    position: absolute;
    top:0;
    left:0;
    right:0;
    bottom:0;
    z-index:100;
    opacity:0.2;
}

.buttonsList .listWrap .listItem .arrow{
    width:20px;
    flex-shrink: 0;
}

.buttonsList .listWrap .listItem .date{
    width:60px;
    flex-shrink: 0;
    color:rgba(51,51,51,0.4);
    font-size:12px;
}

.buttonsList .listWrap .listItem .textWrap{
    flex-grow:1;
    min-width: 0;
    padding-left:10px;
}

.buttonsList .listWrap .listItem .textWrap .text{
    font-size:16px;
}

.buttonsList .listWrap .listItem .textWrap .note{
    font-size:12px;
    color:rgba(51,51,51,0.4);
}

.bigHomeCamera{
    position:fixed;
    width:150px;
    height:150px;
    background-color:rgb(254,168,0);
    border-radius: 999px;
    box-shadow:0px 0px 4px rgba(0,0,0,0.4);
    left:50%;
    transform: translateX(-50%);
    bottom:65px;

}

.bigHomeCamera img{
    width:75px;
    position:absolute;
    top:50%;
    left:50%;
    transform: translate(-50%,-50%);
}

.structoryPage .back{
    padding:0 5px;
    text-align:left;
}

.structoryPage .back img{
    margin-left:0px;
}

.structoryWrap .mainAreas{
    padding:5px;
    display:grid;
    gap:3px;
    grid-template-columns: repeat(3, 1fr);
    font-size:12px;
    text-align: center;
}


.structoryWrap .area .name{
    font-weight:600;
    margin-bottom:6px;
}


.structoryWrap .area .iconWrap{
    width:40px;
    border-radius:4px;
    padding:5px;
    position:relative;
    overflow: hidden;
    margin:0 auto;
}

.structoryWrap .area .iconWrap:has(img) {
    aspect-ratio: 1/1;
}

.structoryWrap .area .iconWrap img{
    position: absolute;
    top:50%;
    left:50%;
    transform: translate(-50%,-50%);
    width:30px;
    z-index: 200;
}

.structoryWrap .area .iconBackground{
    position: absolute;
    top:0;
    left:0;
    right:0;
    bottom:0;
    z-index:100;
    opacity:0.2;
}

.structoryWrap .area .text{
    font-size:10px;
    color:rgba(51,51,51,0.5);
}

.structoryWrapAdd{
    border:1px solid rgba(51,51,51,0.4);
    border-radius:12px;
    overflow:hidden;
    background-color:rgb(255,255,255);
}

.structoryWrap.structoryWrapAdd .mainAreas{
    grid-template-columns: repeat(2, 1fr);
}

.structory2Chosen #structory-pages2 .buttonsList{
    height:0px;
    padding:0;
}

.structory2Chosen .structoryPages{
    margin-top: -41px;
}

.addDocuments .inputTitle{
    font-weight:600;
    font-size:22px;
    margin-bottom:8px;
}

.addDocuments .inputWrap{
    margin-top:15px;
}

.addDocuments .inputWrap input{
    width:100%;
    border:1px solid rgba(51,51,51,0.4);
    outline:none;
    border-radius:12px;
    padding:8px;
}

.addDocuments .inputWrap select{
    width:100%;
    border:1px solid rgba(51,51,51,0.4);
    outline:none;
    border-radius:12px;
    padding:8px;
}

.addDocuments .inputWrap textarea{
    width:100%;
    border:1px solid rgba(51,51,51,0.4);
    outline:none;
    border-radius:12px;
    padding:8px;
}

.addDocuments .inputWrap .twoSelects{
    display:flex;
    align-items: center;
    gap:20px;
}

.addDocuments .inputWrap .twoSelects select{
    flex:1;
}

.addDocuments .inputWrap .checkboxInputs{
    display:flex;
    align-items: center;
    gap:20px;
}

.addDocuments .inputWrap .checkboxInputs input[type="checkbox"]{
    width:30px;
    height:30px;
}

.submitButton{
    border: 1px solid rgb(34, 109, 234);
    background: linear-gradient(90deg, rgb(34, 109, 234) 0%, rgb(23, 90, 203) 100%);
    color: rgb(255, 255, 255);
    display:flex;
    align-items: center;
    gap:7px;
    justify-content: center;
    padding:18px;
    border-radius:12px;
    margin-top:15px;
}

/* Top area */

.addDocuments .scannerHeader {
  margin-bottom: 18px;
}

.addDocuments .scannerTitle {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 6px;
}

.addDocuments .scannerSubtitle {
  font-size: 14px;
  color: #6b7280;
  line-height: 1.4;
}

/* Main actions */

.addDocuments .scannerActions {
  margin-top:20px;
  margin-bottom:20px;
  display:flex;
  gap:20px;
}

.addDocuments .scannerActions .button{
    flex:1;
}

.addDocuments button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

/* Empty state */

.addDocuments .emptyState {
  border: 2px dashed #d1d5db;
  border-radius: 18px;
  padding: 34px 20px;
  text-align: center;
  background: #f9fafb;
  color: #6b7280;
}

.addDocuments .emptyStateIcon {
  width: 58px;
  height: 58px;
  margin: 0 auto 12px auto;
  border-radius: 18px;
  background: #eff6ff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2563eb;
  font-size: 28px;
}

.addDocuments .emptyStateTitle {
  font-size: 18px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 6px;
}

.addDocuments .emptyStateText {
  font-size: 14px;
  line-height: 1.5;
}

/* Pages grid */

.addDocuments #pagesWrap,
.addDocuments .pagesWrap {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(145px, 1fr));
  gap: 14px;
}

/* Page card */

.addDocuments .pagePreview {
  position: relative;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  transition: 0.2s ease;
}

.addDocuments .pagePreview:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
}

.addDocuments .pageImageWrap {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  background: #f3f4f6;
  overflow: hidden;
}

.addDocuments .pageImageWrap img,
.addDocuments .pagePreview > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Page number badge */

.addDocuments .pageBadge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(17, 24, 39, 0.85);
  color: white;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 8px;
  border-radius: 999px;
  z-index: 2;
}

/* Bottom info/actions */

.addDocuments .pageInfo {
  padding: 10px;
}

.addDocuments .pageTitle {
  font-size: 14px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 8px;
}

.addDocuments .pageActions {
  display: flex;
  gap: 6px;
}

.padded{
    padding:0px 20px;
}

.addDocuments .redButton{
    font-size:12px;
    padding:3px;
    border-radius: 5px;
}

.addDocuments .redButton .iconWrap{
    width:10px;
}

.structoryWrap .area .iconWrap .count{
    font-size:30px;
    font-weight:500;
    line-height: 30px;
}


.profileWrap,
.profileWrap *{
    box-sizing:border-box;
}

.profileWrap{
    width:100%;
    font-family:Arial, sans-serif;
    color:#18201c;
}

.profileWrap .profilePage{
    width:100%;
    padding:20px 15px;
}

.profileWrap .profileHeader{
    margin-bottom:20px;
}

.profileWrap .profileTitle{
    font-size:26px;
    font-weight:700;
    letter-spacing:-0.4px;
}

.profileWrap .profileSubtitle{
    font-size:13px;
    color:#728078;
    margin-top:6px;
    line-height:1.45;
}


/* CARDS */

.profileWrap .profileGrid{
    display:flex;
    flex-direction:column;
    gap:14px;
}

.profileWrap .profileCard{
    width:100%;
    background:#fff;
    border:1px solid #e6ebe8;
    border-radius:16px;
    padding:18px;
    box-shadow:0 3px 12px rgba(23,40,30,.035);
}


/* CARD HEADER */

.profileWrap .cardHeader{
    display:flex;
    align-items:center;
    gap:12px;
    margin-bottom:18px;
}

.profileWrap .cardIcon{
    width:42px;
    height:42px;
    border-radius:12px;
    display:flex;
    align-items:center;
    justify-content:center;
    flex-shrink:0;
}

.profileWrap .cardIcon svg{
    width:20px;
    height:20px;
    fill:none;
    stroke:currentColor;
    stroke-width:1.8;
    stroke-linecap:round;
    stroke-linejoin:round;
}

.profileWrap .familyIcon{
    background:#eef5ff;
    color:#3478d4;
}

.profileWrap .propertyIcon{
    background:#eff9f0;
    color:#179c29;
}

.profileWrap .vehicleIcon{
    background:#fff5eb;
    color:#d9791a;
}

.profileWrap .cardTitle{
    font-size:15px;
    font-weight:700;
}

.profileWrap .cardSubtitle{
    font-size:11px;
    color:#86918b;
    margin-top:3px;
    line-height:1.4;
}


/* TAGS */

.profileWrap .tagsWrap{
    display:flex;
    flex-wrap:wrap;
    gap:7px;
    min-height:34px;
    margin-bottom:16px;
}

.profileWrap .profileTag{
    display:flex;
    align-items:center;
    gap:6px;

    max-width:100%;

    padding:7px 7px 7px 11px;

    background:#f5f7f6;
    border:1px solid #e5eae7;
    border-radius:9px;

    font-size:13px;
    font-weight:500;
}

.profileWrap .profileTag span{
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
}

.profileWrap .profileTag .removeTag{
    width:22px;
    height:22px;

    border:none;
    border-radius:6px;
    background:transparent;

    display:flex;
    align-items:center;
    justify-content:center;

    color:#9aa39e;
    font-size:17px;

    padding:0;
    cursor:pointer;
}

.profileWrap .profileTag .removeTag:active{
    background:#ffe9e9;
    color:#e44b4b;
}


/* ADD */

.profileWrap .addWrap{
    display:flex;
    gap:7px;

    padding-top:14px;

    border-top:1px solid #edf0ee;
}

.profileWrap .addWrap input{
    flex:1;
    min-width:0;

    height:44px;

    padding:0 12px;

    border:1px solid #dfe5e1;
    border-radius:10px;

    background:#fbfcfb;

    font-size:14px;
    outline:none;
}

.profileWrap .addWrap input:focus{
    background:#fff;
    border-color:#179c29;
    box-shadow:0 0 0 3px rgba(23,156,41,.08);
}

.profileWrap .addWrap button{
    height:44px;

    padding:0 13px;

    border:none;
    border-radius:10px;

    background:#18251e;
    color:#fff;

    font-size:13px;
    font-weight:600;

    display:flex;
    align-items:center;
    justify-content:center;
    gap:4px;

    flex-shrink:0;
    cursor:pointer;
}

.profileWrap .addWrap button:active{
    transform:scale(.97);
}

.profileWrap .addWrap button span{
    font-size:18px;
    font-weight:400;
}

.structoryWrap .documentRow{
    display:flex;
    gap:10px;
    align-items: center;
    justify-content: space-between;
    background-color:rgb(255,255,255);
    border:1px solid rgba(51,51,51,0.2);
    padding:12px;
    border-radius: 8px;
    margin-bottom:12px;
}

.structoryWrap .documentRow .infoWrap{
    flex:1;
}

.structoryWrap .documentRow .icon{
    width:24px;
}

.structoryWrap .documentRow .infoWrap .name{
    font-size:14px;
}

.structoryWrap .documentRow .infoWrap .tags{
    
    display:flex;
    align-items: center;
    gap:10px;
    flex-wrap:wrap;
    margin-top:10px;
}

.structoryWrap .documentRow .infoWrap .tags .tag{
    font-size:11px;
    color:rgba(51,51,51,0.5);
    background-color: rgba(51,51,51,0.1);
    border:1px solid rgba(51,51,51,0.2);
    padding:5px;
    border-radius:8px;
}