*{outline: 0;}
*, ul, li, br, div, form, input, select, hr, h1, h2, h3, h4, h5, h5, span, a, body, html, img {margin: 0;padding: 0; border: none; }
ul li{list-style-type:none;}

.clr, .clr5, .clr10, .clr20 {  height: 0; clear: both; font-size:0; overflow: hidden; line-height:0; }
.clr20{height:20px;}
.clr10{height:10px;}
.clr5{height:5px;}
.clearfix:after{content:"";float:none;display:block;height:0;clear:both;}
strong{font-weight:bold;padding:2px 0px;}
.hidden{display:none;}
.radius3{-webkit-border-radius: 3px;-moz-border-radius: 3px;border-radius: 3px;}
.radius4{-webkit-border-radius:4px;-moz-border-radius:4px;border-radius: 4px;}
.radius6{-webkit-border-radius: 6px;-moz-border-radius: 6px;border-radius: 6px;}
.radius12{-webkit-border-radius: 12px;-moz-border-radius: 12px;border-radius: 12px;}
h1, h2, h3, h4, h5 {color: #4F4F4F;font-family: var(--brand-font, 'Roboto'), sans-serif;}
h1{font-weight: 500;font-size: 36px;line-height: 40px;}
h2{font-size:2.813em;	font-weight:bold;	line-height: 54px;}
h3{
font-family: var(--brand-font, 'Roboto');
font-style: normal;
font-weight: 500;
font-size: 16px;
line-height: 24px;
color: #000000;
}
h4{font-size:1.375em;font-weight:bold;line-height: 26px;}

.align-left{text-align:left;}

a, a:visited {color:#4F4F4F;text-decoration: none;}
a:hover {text-decoration: none;color:#000;}


body{
  height:100%;
  min-height: 100vh;
  min-height: -webkit-fill-available;
}
html{
  height: -webkit-fill-available;
}

html, body {font-family: var(--brand-font, 'Roboto'), 'Open Sans', sans-serif; color: #4F4F4F;text-align: left;font-size:16px;background: #fff;overflow-x:hidden;}
html.no-scroll, body.no-scroll{position: fixed;overflow: hidden; width: 100%;}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-button {
  width: 0px;
  height: 0px;
}
::-webkit-scrollbar-thumb {
  background: var(--brand-accent, #9A2F58);
  border: 0px none #ffffff;
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--brand-accent, #9A2F58);
}
::-webkit-scrollbar-thumb:active {
  background: var(--brand-accent, #9A2F58);
}
::-webkit-scrollbar-track {
  background: #fbfcfc;
  border: 0px none #ffffff;
  border-radius: 10px;
}
::-webkit-scrollbar-track:hover {
  background: #fbfcfc;
}
::-webkit-scrollbar-track:active {
  background: #fbfcfc;
}
::-webkit-scrollbar-corner {
  background: transparent;
}

body.page-zoom-75{zoom:75%;}
body.page-zoom-125{zoom:125%;}
body.page-zoom-150{zoom:150%;}

textarea, input{font-family: 'Open Sans', sans-serif;font-size:16px;border-radius: 0;-webkit-appearance: none;-moz-appearance: none;appearance: none;}
/* Change the white to any color ;) */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active  {
    -webkit-box-shadow: 0 0 0 30px white inset !important;
    font-size:16px;
}
input[type=range] {
  -webkit-appearance: none;
  margin: 10px 0;
  width: 100%;
}
input[type=range]:focus {
  outline: none;
}
input[type=range]::-webkit-slider-runnable-track {
  width: 100%;
  height: 2px;
  cursor: pointer;
  animate: 0.2s;
  box-shadow: 0px 0px 0px #000000;
  background: #DADEE3;
  border-radius: 21px;
  border: 0px solid #000000;
}
input[type=range]::-webkit-slider-thumb {
  box-shadow: 0px 0px 1px #000000;
  border: 0px solid #000000;
  height: 12px;
  width: 12px;
  border-radius: 21px;
  background: #5786FF;
  cursor: pointer;
  -webkit-appearance: none;
  margin-top: -5px;
}
input[type=range]:focus::-webkit-slider-runnable-track {
  background: #DADEE3;
}
input[type=range]::-moz-range-track {
  width: 100%;
  height: 2px;
  cursor: pointer;
  animate: 0.2s;
  box-shadow: 0px 0px 0px #000000;
  background: #DADEE3;
  border-radius: 21px;
  border: 0px solid #000000;
}
input[type=range]::-moz-range-thumb {
  box-shadow: 0px 0px 1px #000000;
  border: 0px solid #000000;
  height: 12px;
  width: 12px;
  border-radius: 21px;
  background: #5786FF;
  cursor: pointer;
}
input[type=range]::-ms-track {
  width: 100%;
  height: 2px;
  cursor: pointer;
  animate: 0.2s;
  background: transparent;
  border-color: transparent;
  color: transparent;
}
input[type=range]::-ms-fill-lower {
  background: #DADEE3;
  border: 0px solid #000000;
  border-radius: 42px;
  box-shadow: 0px 0px 0px #000000;
}
input[type=range]::-ms-fill-upper {
  background: #DADEE3;
  border: 0px solid #000000;
  border-radius: 42px;
  box-shadow: 0px 0px 0px #000000;
}
input[type=range]::-ms-thumb {
  box-shadow: 0px 0px 1px #000000;
  border: 0px solid #000000;
  height: 12px;
  width: 12px;
  border-radius: 21px;
  background: #5786FF;
  cursor: pointer;
}
input[type=range]:focus::-ms-fill-lower {
  background: #DADEE3;
}
input[type=range]:focus::-ms-fill-upper {
  background: #DADEE3;
}
.toleft { display: block; float: left; }
.toright { display: block; float: right; }
.fl{float:left;}
.fr{float:right;}
.bold { font-weight:bold; }
.normal { font-weight:normal; }
.centered { text-align: center; }
.small { font-size:10px; }
.middle { font-size:11px; }
.large { font-size:0.750em;font-weight:bold; }
.top-right { position: absolute; top: 0; right: 0; }
.top-left { position: absolute; top: 0; left: 0; }

.loading-window{
  width:100%;text-align:center;max-width:360px;margin:0 auto;display:none;
}
.loading-window .intro-text{
  display:block;padding:57px 20px;box-sizing:border-box;line-height:19px;font-size:14px;color:#828282;max-width:214px;margin: 0 auto;
}
.loading-window .intro-logo{
  display:block;padding:89px 0 0 0;max-width:282px;margin: 0 auto;
}
.wrap-content{padding:0px;min-height: calc(100% - 226px);width:100%;box-sizing:border-box;/*max-width:640px;*/display:flex;margin:0 auto; position:relative;}
.worksheet-content{/*min-height: calc(100% - 54px - 100px);*/position:fixed;top:54px;left:0;right:0;bottom:52px;/* = .footer-worksheet augstums */height:auto;min-height:auto;z-index:9;}
.main-content-intro{width:100%;padding:0 20px;box-sizing:border-box;max-width:380px;margin:0 auto; position:relative;}
.wrap-content.worksheet{padding:0px 0px 0px 0px}
.slide-content{padding: 28px  25px;width:100%;box-sizing:border-box;height: 80vh;max-height:549px;position:relative; }
.slide-window{                                               /* url(/images/svg/slide-intro-bg.svg) no-repeat center */
  text-align:center;box-sizing:border-box;background: #FFFFFF;box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.1);padding: 51px 36px;
  max-height:549px;
  letter-spacing: 0px;
  text-align: center;
  color: #18224C;
  position:absolute;
  left:28px;
  top:25px;
  bottom:45px;
  right:28px;
  opacity:0;
  font-family: var(--brand-font, 'Roboto');
  font-style: normal;
  font-size: 20px;
  line-height: 28px;
}
.slide-window img{max-width:100%;}
.slide-window:first-of-type{opacity:1;}
.slide-navig{display: flex;width:auto;z-index:9;position:absolute;text-align:center;bottom:0px;left:0px;right:0px;}
.slide-navig ul{position:relative;margin: 0 auto;}
.slide-navig ul li.slider{left:0;right:30px;background:#A0A3BD;position:absolute;transition:all 0.2s linear;}
.slide-navig ul li{height: 8px;
  width: 16px;
  border-radius: 4px;
  background: #EFF0F7;margin: 0 4px;display:inline-block;cursor:pointer;
}
.slide-btn{display:flex;width:auto; justify-content: center;}
.slide-btn a{
  font-family: var(--brand-font, 'Roboto');
  font-style: normal;
  font-weight: 500;
  font-size: 13px;
  line-height: 20px;
  text-align: center;
  color: #A5ADBA;

}
.slide-btn a.btn{padding: 12px 16px;}
.slide-btn .intro-close{display:none;}
.slide-btn .btn .intro-close{display:block;}
.slide-btn .btn .intro-skip{display: none;}

.select-profile-type , .select-webpage-type{height: 100vh;max-height:640px;box-sizing:border-box; text-align:center;
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-flex-direction: column;
  -moz-box-orient: vertical;
  -moz-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
}

.select-profile-type > div, .select-webpage-type > div{
  -webkit-box-flex: 1;
  -webkit-flex: 1;
  -moz-box-flex: 1;
  -ms-flex: 1;
  flex: 1;
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  -moz-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-flex-direction: column;
  -moz-box-orient: vertical;
  -moz-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
}

.select-webpage-type .webpage-type-option{display :flex; flex-direction: row;justify-content: space-between;}

.select-webpage-type .webpage-type-option .disabled{opacity: 0.4}

@supports (-webkit-touch-callout: none) {
  /* CSS specific to iOS devices */
  .main-content-intro{
    height:auto;
    height: -webkit-fill-available;
  }

/*  .main-content.worksheet{
    height:auto;
    min-height: 100%;
    padding-bottom:0px;
    box-sizing:border-box;
    min-height: -webkit-fill-available;
  }*/
  .select-profile-type, .wrap-content:not(.worksheet-content){
    height:auto;
    min-height: 100%;
    /* mobile viewport bug fix */
    min-height: -webkit-fill-available;
  }


}

.select-profile-type h1{padding:0; /*63px 0 58px 0;*/}


.select-profile-type .profile-type{/*padding: 0 0 19px 0;*/text-align:center;}
.select-profile-type .profile-type.disabled-profile-type{opacity: 0.4;}
.select-profile-type .profile-type a{display:flex; flex-direction: column;align-items: center;  }
.select-profile-type .profile-type .select-profile-type-icon{border: 5px solid #fff;border-radius: 16px;text-align:center;display: flex;justify-content:center;}
.select-profile-type .profile-type a:hover .select-profile-type-icon{border: 5px solid rgba(81, 230, 156, 0.2);}
.select-profile-type .profile-type .select-profile-type-icon svg{display:block;}
.select-profile-type .profile-type .select-profile-type-title{padding: 14px 0 19px 0;font-family: var(--brand-font, 'Roboto');
font-style: normal;
font-weight: 500;
font-size: 18px;
line-height: 20px;}

.login-profile{text-align:center;}
.login-profile .btn.submit{padding: 12px 16px;width:100%;}
.login-profile-icon{padding: 36px 0 0 0;}
.login-profile-welcome{
  font-family: Poppins;
  font-style: normal;
  font-weight: bold;
  font-size: 16px;
  line-height: 150%;
  text-align: center;
  letter-spacing: 0.5px;
  color: #223263;
  padding: 8px 0 0 0;
}
.login-profile-welcome span{
  font-family: 'Source Sans Pro';
  font-style: normal;
  font-weight: 600;
  font-size: 14px;
  line-height: 20px;
  text-align: center;
  color: #9098B1;
  display:block;
  padding: 0 0 13px 0;
}
.login-form-divider{position:relative;border-top:1px solid #EBF0FF;margin: 30px 0 30px 0;}
.login-form-divider span{padding: 0 25px;position:absolute;left:50%;bottom:-50%;background:#fff;transform: translate(-50%, 50%);
  font-family: Poppins;
  font-style: normal;
  font-weight: bold;
  font-size: 14px;
  line-height: 150%;
  letter-spacing: 0.005em;
  color: #9098B1;
}
.login-form-options a.btn{display:flex; flex-direction: row;  align-content: center; align-items: center; background:none; border:1px solid #EBF0FF;
  font-family: var(--brand-font, 'Roboto');
  font-style: normal;
  font-weight: 500;
  font-size: 14px;
  line-height: 20px;
  color: #9098B1;
  padding: 4px 0px 4px 0px;
  justify-content: flex-start;
}
.login-form-options a.btn:hover{border: 1px solid rgba(30, 46, 87, 0.9);color: #1E2E57;background:none;}
.login-form-options a.btn span{display:flex; flex:0 0 30%; text-align:center; justify-content: center; align-content: center; align-items: center; }

.login-btn-container .btn{width:100%;}
.custom-input-container,.custom-input-container-file{
  font-size: 16px;
  color:#09101D;
  margin:0 0 20px 0;
  position:relative;
  box-sizing:border-box;
}
.custom-input-content{
  background: #F4F6F9;
  border-radius: 8px;
  border: 2px solid #F4F6F9;
  width:100%;height:100%;
  box-sizing:border-box;
  display:flex;
  height:48px;
  position:relative;
}
.custom-input-container.active.focusin .custom-input-content{background:#fff;border-color:#5786FF;}
.custom-input-container .custom-input-content{background:#fff;/*border-color:#858C94;*/}
.custom-input-container.active .custom-input-content{background:#fff;border-color:#858C94;}
.custom-input-container label{position:absolute;bottom:14px;left:13px;

font-family: 'Source Sans Pro';
    font-style: normal;
    font-weight: 600;
    font-size: 16px;
    line-height: 24px;
    display: flex;
    align-items: center;
    color: rgb(30, 46, 87, 0.8);

    -webkit-transform-origin: bottom left;
    transform-origin: bottom left;
    -webkit-transition: all .3s cubic-bezier(0.4,0,0.2,1);
    transition: all .3s cubic-bezier(0.4,0,0.2,1);
    -webkit-transition-property: color,bottom,transform;
    transition-property: color,bottom,transform;
}
.custom-input-container.active label{
  -webkit-transform: scale(.75) translateY(-34px);
  transform: scale(.75) translateY(-34px);
  background:#fff;
  padding: 0 9px 0 4px;
  color:#5786FF;
}
.custom-input-container.active,
.custom-input-container-file{border-color:#5786FF;}
.custom-input-container.error, .custom-container.error select{border:2px solid #ED1C25;}
.custom-input-container span,.custom-input-container-file span{color:#ED1C25;font-size:16px;padding-left:3px;line-height:11px;}
.custom-input-container input,.custom-input-container textarea,.custom-input-container-file input, .custom-input-container  select{display:block;border:none;padding:12px 12px;height:20px;line-height:24px;font-size:16px;color: rgb(30, 46, 87, 0.8);
  flex-grow: 1;
  flex-shrink: 1;
  background: none;
  font-weight:600;
  border-radius:6px;
  font-family: 'Source Sans Pro', sans-serif;
  background-color: transparent;
}

.custom-input-container.active input{position:relative;bottom:0;display:block;}
.custom-input-container-file input{bottom:0;}
.custom-input-container-file span{font-weight:400;font-size: 16px;color: #B0AB9C;}

.custom-input-content.textarea{
  height:auto;
}
.custom-input-container textarea{
  height:64px;
  resize: none;
}
.custom-input-container .custom-input-content.textarea label{
  bottom:auto;
  top:20px;
  font-family: 'Source Sans Pro';
  font-style: normal;
  font-weight: 600;
  font-size: 16px;
  line-height: 24px;
  display: flex;
  align-items: center;
  color: rgb(30, 46, 87, 0.8);
}
.custom-input-container.active .custom-input-content.textarea label{
  -webkit-transform: scale(.75) translateY(-50px);
  transform: scale(.75) translateY(-50px);
}

.custom-input-tooltip{
  font-family: 'Source Sans Pro';
  font-style: normal;
  font-weight: normal;
  font-size: 13px;
  line-height: 20px;
  color: rgb(9, 16, 29, 0.6);
  text-align:left;
  padding: 0 0 0 16px;
}
.custom-input-message{
  background: #EDF9F0;
  border-radius: 8px;
  padding: 6px 40px;
  text-align:left;
  display:none;
}
.custom-input-message.warning{display:block;
  font-family: Source Sans Pro;
  font-style: normal;
  font-weight: normal;
  font-size: 13px;
  line-height: 20px;
  display: flex;
  align-items: center;
  color: #DA1414;
  flex: none;
  order: 0;
  align-self: stretch;
  flex-grow: 0;
  margin: 0px 0px;
  background: #FEEFEF url(/images/svg/warning-icon.svg) no-repeat 16px center;
}
.custom-input-message.success{display:block;
  font-family: Source Sans Pro;
  font-style: normal;
  font-weight: normal;
  font-size: 13px;
  line-height: 20px;
  display: flex;
  align-items: center;
  color: #287D3C;
  flex: none;
  order: 0;
  align-self: stretch;
  flex-grow: 0;
  margin: 0px 0px;
  background: #EDF9F0 url(/images/svg/success-icon.svg) no-repeat 16px center;
}
.agre-terms{
  font-size: 9px;
  line-height: 12px;
  color: #061938;
}
.agre-terms .container-custom-checkbox{
  display:flex;
  align-items: center;
}
.agre-terms .container-custom-checkbox a{font-weight: bold;}
.agre-terms .container-custom-checkbox span{color:#ED1C25;font-size:16px;}

.to-register-options{padding: 14px 0 0 0;}
.to-register-options a{
  font-family: var(--brand-font, 'Roboto');
  font-style: normal;
  font-weight: 500;
  font-size: 13px;
  line-height: 20px;
  text-align: center;
  color: #9098B1;
  display:block;
}
.to-register-options a.to-register{
  font-family: var(--brand-font, 'Roboto');
  font-style: normal;
  font-weight: bold;
  font-size: 13px;
  line-height: 20px;
  text-align: center;
  color: #40BFFF;
}

a.btn,
button.btn{
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  padding: 10px 48px 10px 48px;
  background: rgba(21, 25, 30, 1);
  border-radius: 3px;
  font-style: normal;
  font-weight: 600;
  font-size: 16px;
  line-height: 24px;
  color: #fff;
  margin: 8px 0px;
  cursor: pointer;
  box-sizing: border-box;
}
a.btn:hover,
button.btn:hover{
  background:rgba(21, 25, 30, 1);
}
a.btn-transparent,
a.btn.cancel,
button.btn.cancel,
button.btn-transparent{
    background:#fff;
    color:#40BFFF;
    border:2px solid #40BFFF;
    padding: 10px 0px 10px 0px;
}
a.btn-transparent:hover,
a.btn.cancel:hover,
button.btn-transparent:hover,
button.btn.cancel:hover{
    background:rgba(21, 25, 30, 1);
    color:#fff;
}
button.btn{
  text-align:center;
  align-content: center;
  align-items: center;
  justify-content: center;
}
.login-btn-container.loading-btn button{display:none;}
.login-btn-container.loading-btn{display:block;height:48px;margin: 8px 0px;background:url(/images/loader-login.svg?v=1) no-repeat center;}

.header-wrap{background: #51E69C;position:relative;touch-action: none;}
body.shop .header-wrap{background:#fff;}
body.cart-details .header-wrap{box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.05);}
body.student .header-wrap{background:#7DD0F4;}
body.parent .header-wrap{background:#6554C0;}
body.teacher.page-portfolio .header-wrap,
body.student.page-portfolio .header-wrap{background:#FFFFFF;}
.header-wrap.header-wrap-worksheet{background: rgba(255, 255, 255, 1);position:relative;touch-action: none;height:54px;width:100%;position:fixed;top:0;left:0;z-index:999;}

.save-action-box{display: none}
.save-action .header-wrap.header-wrap-worksheet,
.save-action .navigation-worksheet-tools-switch,
.save-action .design-objects{
    display: none;
}
.save-action .save-action-box{display: block;}
.save-action .worksheet-content,
.save-action .navigation-content.navigation-worksheet-tools{top:0;}

.close-save-action{
    display: flex;
    padding: 10px 20px;
    justify-content: space-between;
    align-items: center;
}
.close-save-action .close-btn{
    display: flex;
    cursor:pointer;
    justify-content: space-between;
    align-items: center;
}
.save-action-content{
    border-top: 1px solid #C3CBD5;
    padding:18px 20px;
}
.save-action-content ul{
    padding: 40px 0;
    border-top: 1px solid #C3CBD5;
    margin-top:30px;
}
.save-action-content ul li{
    display: flex;
    align-items: center;
    padding-bottom:10px;
}
.save-action-content ul li svg{
    padding-right:8px;
    /* Bez šī ķeksīša ikona ir parasts flex elements ar flex-shrink:1 un sarūk
       pēc blakus teksta garuma - trīs punktiem sanāca trīs dažādi ikonu
       izmēri. */
    flex: 0 0 auto;
}

.save-action-content .btn{
    width:100%;
    display: flex;
    background:var(--brand-accent, #9A2F58);
    color:#fff;
    flex-direction: row;
    align-items: center;
    margin-bottom:10px;
}
.save-action-share{
    margin-top:6px;
}
.save-action-share-heading{
    font-size:13px;
    color:#6B7280;
    margin-bottom:8px;
}
.save-action-share-buttons{
    display:flex;
    gap:10px;
}
.btn-share{
    width:44px;
    height:44px;
    border-radius:50%;
    background:#F0F2F4;
    border:none;
    display:flex;
    align-items:center;
    justify-content:center;
    cursor:pointer;
    padding:0;
}
.btn-share:hover{
    background:#15191E;
}
.btn-share:hover svg path{
    fill:#fff;
    stroke:#fff;
}
.btn-share:hover svg rect,
.btn-share:hover svg circle{
    stroke:#fff;
}
.btn-share:hover svg circle[fill]{
    fill:#fff;
}

.header-worksheet-tools-block{display:flex;height:54px;width:100%;align-content: center; align-items: center;justify-content: space-around;}

.header-worksheet-tools-block .header-worksheet-home{width: 250px;flex: 0 0 250px; justify-content: flex-start;display:flex;align-content: center; align-items: center;}
.header-worksheet-tools-block .header-worksheet-home .worksheet-last-saved{
  font-family: var(--brand-font, 'Roboto');
  font-style: normal;
  font-weight: normal;
  font-size: 16px;
  line-height: 24px;
  padding: 0 0 0 28px;
}
.header-worksheet-tools-block .header-worksheet-tools{flex: 1; justify-content: center;text-align:center;display:flex;}
.header-worksheet-tools-block .header-worksheet-save{width: 230px;display:flex;flex: 0 0 230px;justify-content: flex-end; }
/* Klienta rīkā (body:not(.admin)) kreisā/labā josla ir tukša - tai nedrīkst rezervēt 250/230 px, citādi Design/Preview pārslēgs
   šaurā rīkā (piem. iebūvēts mājaslapā) nobīdās pa labi un iet pāri paneļa malai. Tā tas paliek centrēts virs 3D laukuma. */
body:not(.admin) .header-worksheet-tools-block .header-worksheet-home,
body:not(.admin) .header-worksheet-tools-block .header-worksheet-save{flex:0 1 0;width:0;min-width:0;overflow:hidden;}
body:not(.admin) .header-worksheet-tools-block .header-worksheet-tools{min-width:0;}

.header-worksheet-tools-block .header-worksheet-save .submit-worksheet{
  padding: 7px 21px;
  background: rgb(81, 230, 156, 0.7);
  border-radius: 23px;
  cursor:pointer;
  color: rgb (30, 46, 87, 0.6);
  text-align:center;
  justify-content: center;
  display:flex;
  align-items: center;
}
.header-worksheet-tools-block .header-worksheet-save .submit-worksheet:hover{
  background: #51E69C;
  color: #1E2E57;
}
.header-worksheet-tools-block .header-worksheet-save .submit-worksheet.rate{display:flex;float:left;flex: 0;margin-right:10px;background:#51E69C;}
.header-worksheet-tools-block .header-worksheet-save .submit-worksheet.rate{padding:0;color:#1E2E57;}
.header-worksheet-tools-block .header-worksheet-save .submit-worksheet.rate label{padding:3px 21px 3px 3px; display:flex;align-items: center;cursor:pointer;}
.header-worksheet-tools-block .header-worksheet-save .submit-worksheet.rate .switch{margin-right:14px;}

.header-worksheet-tools-block .header-worksheet-save .submit-worksheet.rate .switch {
  position: relative;
  display: inline-block;
  flex: 0 0 56px;
  width: 56px;
  height: 32px;
}

/* Hide default HTML checkbox */
.header-worksheet-tools-block .header-worksheet-save .submit-worksheet.rate .switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

/* The slider */
.header-worksheet-tools-block .header-worksheet-save .submit-worksheet.rate .slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #5E38BA;
  -webkit-transition: .4s;
  transition: .4s;
}

.header-worksheet-tools-block .header-worksheet-save .submit-worksheet.rate .slider:before {
  position: absolute;
  content: "";
  height: 24px;
  width: 24px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  -webkit-transition: .4s;
  transition: .4s;
}
.header-worksheet-tools-block .header-worksheet-save .submit-worksheet.rate input:checked + .slider {
  background-color: #18C56E;
}
.header-worksheet-tools-block .header-worksheet-save .submit-worksheet.rate input:focus + .slider {
  box-shadow: 0 0 1px #18C56E;
}
.header-worksheet-tools-block .header-worksheet-save .submit-worksheet.rate input:checked + .slider:before {
  -webkit-transform: translateX(24px);
  -ms-transform: translateX(24px);
  transform: translateX(24px);
}
/* Rounded sliders */
.header-worksheet-tools-block .header-worksheet-save .submit-worksheet.rate .slider.round {
  border-radius: 34px;
}
.header-worksheet-tools-block .header-worksheet-save .submit-worksheet.rate .slider.round:before {
  border-radius: 50%;
}


.header-worksheet-tools-cotainer{min-width:20px;margin:0 10px;display:flex; flex-grow: 0;padding: 0px; }
.header-worksheet-tools-cotainer > div{height:24px;cursor:pointer;padding: 0 4px;display:flex; align-items: center;}
.header-worksheet-tools-cotainer .edit.preview-worksheet,
/*.header-worksheet-tools-cotainer .edit.download-worksheet,*/
.header-worksheet-tools-cotainer .edit.redo-worksheet,
.header-worksheet-tools-cotainer .edit.undo-worksheet
{display: none;}
.header{padding: 0 16px;box-sizing:border-box;margin: 0 auto;display:flex;}

.header-worksheet-tools-cotainer .btn{background:#fff;color: #15191E;}
.header-worksheet-tools-cotainer .btn.btn-active,
.header-worksheet-tools-cotainer .btn:hover{background:#15191E;color:#fff;}


.header-tools-profile{display:flex; flex-direction: row-reverse;}
.header-tools{display:flex;height:80px;align-content: center; align-items: center; flex-direction: row-reverse; }
.header-tools .switch-pages-profile-btn{flex: 1 1;}
.header-tools .switch-pages-profile-btn .switch-pages{display: none;}
.header-tools .switch-pages-profile-btn a{display: block;height: auto;}
.header-tools .switch-pages-profile-btn a svg{display: block;}
.header-tools > * {flex: 0 0 auto;padding-left:16px;width:24px;height:24px;}
.header-tools a{display:inline-block;height:24px;}
.page-portfolio .header-tools a.new-notifications svg circle{fill:#51E69C}
.header-tools .header-profile-image{display:none;height:28px;width:28px;border-radius:50px;padding:0;}
.header-tools .header-back-btn{display:none;padding: 0 0 0 16px;box-sizing:border-box;position:absolute;left:0;top:0;height:60px;width:100%;justify-content: flex-start; align-items: center;background:#51E69C;}

.shop-cart.active-cart{cursor:pointer;}
.cart-back-btn a{display: flex;align-items: center; align-content: center;
  font-weight: bold;
  font-size: 25.2961px;
  line-height: 120%;
  letter-spacing: -0.01em;
  color: #293854;
}
.cart-back-btn a svg{padding-right: 45px;}

.header-tools-nav{flex-grow: 1;display:flex; align-items: flex-end; }
.header-tools-nav ul li{display:inline-block;}
.header-tools-nav ul li a{
  font-weight: 500;
  font-size: 16px;
  line-height: 24px;
  color: #545D69;
  padding: 9px 48px;
  display:block;
  margin-bottom:2px;
}

.header-tools-nav ul li a:hover, .header-tools-nav ul li a.active{color: #1E2E57;border-bottom:2px solid #1E2E57;margin:0;}

body.parent .header-tools-nav ul li a{color:#FFFFFF;}
body.parent .header-tools-nav ul li a:hover, body.parent .header-tools-nav ul li a.active{border-bottom:2px solid #FFFFFF;}
body.parent .header-tools svg path{fill:#FFFFFF;}

.header-back-btn-show.mobile-view .header-tools .header-back-btn{display:flex;}
.header-back-btn-show.mobile-view .header-tools :last-child {
    flex: 0;
    justify-content: flex-start;
    text-align: left;
}
.header-back-btn-show .header-tools a{float:left;}

.header-profile{display: flex;}
.header-profile{display: flex;align-items: center;position:relative;transition: height 0.4s linear;}
.switch-pages{cursor: pointer;}
.header-profile-image{width:56px;height:56px;padding: 12px 12px 12px 12px;}
.header-profile-image a{display:block;border-radius: 10px;overflow:hidden;}
.header-profile-image a img{width:100%;height:100%;display:block;}
.header-profile-image svg{width:100%;height:100%;}
.header-profile-hello{
    font-family: Ubuntu;
    font-style: normal;
    font-weight: 300;
    font-size: 24px;
    line-height: 105%;
    color: #1E2E57;
    padding:0;
}
.header-profile-hello b{font-weight:400;}
.header-profile-hello span{
  display:block;
  font-family: Ubuntu;
  font-style: normal;
  font-weight: 300;
  font-size: 16px;
  line-height: 105%;
  color: #1E2E57;
  padding: 6px 0 0 0;
}
.header-profile-footer{display:none;transition: height 0.4s linear;background:#fff;border-radius: 0 40px 0 0 ;height:40px;z-index:0;position:absolute;left:0;bottom:0;right:0;}
body.parent .header-profile-hello,
body.parent .header-profile-hello span{color:#fff;}


.navigation-content{width:219px;min-width:219px;background: #6554C0;position:relative;transition:all 0.4s linear;overflow-x: hidden;}
.navigation-content.navigation-worksheet-properties,
.navigation-content.navigation-worksheet-tools{overflow: visible;}
body.student .navigation-content{background:#1E2E57;}
body.student.student-worksheet .navigation-content{background:#fff;}
body.parent .navigation-content{background:#1E2E57;}
body.teacher.page-portfolio .navigation-content,
body.student.page-portfolio .navigation-content{background:#789DED;}
.navigation-content.navigation-worksheet-tools{width:330px;background:#fff;z-index: 2;transition:all 0.4s linear;}
.navigation-content.navigation-worksheet-tools.collapsed .design-objects .design-objects-content{}
.navigation-content.collapsed{width:55px;min-width:55px;}
.navigation-content.collapsed ul ul{display:none;}
.navigation-content.collapsed .navigation-content-switch{
  -moz-transform: scale(-1, 1);
  -webkit-transform: scale(-1, 1);
  -o-transform: scale(-1, 1);
  -ms-transform: scale(-1, 1);
  transform: scale(-1, 1);
  transition:all 0.4s linear;
}
.navigation-content.collapsed .left-navigation ul li a div.menu-name{}
.navigation-content-switch{position:absolute;top:29px;right:14px;cursor: pointer;}


.navigation-content.navigation-worksheet-tools.collapsed{}

.navigation-content.navigation-worksheet-tools{
  position: fixed;
  right: 0px;
  top: 54px;
  bottom:52px;/* = .footer-worksheet augstums */
  width:100%;
  max-width:530px;
  z-index: 2;
  min-height:auto;
  transition: all 0.4s linear;
}
.navigation-content.navigation-worksheet-tools.collapsed{left:100%;}

/* Mobilajā skatā atvērtais rīku panelis aizsedz visu ekrānu - 3D skata zem tā
   vairs nav. Kājenes josla (undo/redo/Reset/tālummaiņa) tad darbotos ar canvas,
   ko lietotājs neredz, tāpēc to slēpjam un laižam paneli līdz pat apakšai.
   .tools-open uz <body> uzliek jvs/js.js syncToolsCollapsedClass(). */
.mobile-view.tools-open .footer-worksheet{display:none;}
.mobile-view.tools-open .navigation-content.navigation-worksheet-tools:not(.collapsed){bottom:0;}

.navigation-worksheet-tools-switch{/*left:0;top:auto;bottom:10px;z-index:2;*/}
.mobile-view .navigation-content.navigation-worksheet-tools:not(.collapsed) .navigation-worksheet-tools-switch{
    width:100%;
    position: fixed;
    top:0;
    left:0;
    right:0;
    height:60px;
    z-index:3;
    display: flex;
    justify-content: space-between;
    padding: 0 20px 0 20px;
    box-sizing: border-box;
}


.navigation-content.navigation-worksheet-properties{width:330px;background: #EBECF0;z-index: 2;transition:all 0.4s linear;}


.navigation-content.navigation-worksheet-properties .reminder-image-list{
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
}
.navigation-content.navigation-worksheet-properties .reminder-image-list > div{
  width: calc(33.33% - 20px);
  height: 60px;border-radius: 10px;overflow:hidden;
  padding: 0px;
  margin: 10px;
  box-sizing:border-box;
  position:relative;
  border: 2px solid #D6E4EC;
}
.navigation-content.navigation-worksheet-properties .reminder-image-list > div span{
  position:absolute;right:0;top:0;
  background: #fff url('/images/svg/btn-delete-worksheet.svg') no-repeat center;
  background-size: contain;
  width:16px;
  height:16px;
  cursor: pointer;
}
.navigation-content.navigation-worksheet-properties .reminder-image-list > div img{
  width: 200%;
  cursor: pointer;
}
.reminder-image-popup{width:100%;}
.reminder-image-popup img{width:100%;}

.navigation-content.navigation-worksheet-properties .dropzone {text-align:center;min-height:165px;}
.navigation-content.navigation-worksheet-properties .dropzone .dz-message{}
.navigation-content.navigation-worksheet-properties .dropzone .dz-preview{margin: 0 auto;}

.navigation-content.navigation-worksheet-properties input[type=text],
.navigation-content.navigation-worksheet-properties textarea,
.navigation-content.navigation-worksheet-properties .RitchTextEditor .ql-editor,
.navigation-content.navigation-worksheet-properties .dropzone.dz-clickable{
    background: #FFFFFF;
    border: 2px solid #D6E4EC;
    color: rgba(30, 46, 87, 0.3);
    box-sizing: border-box;
    border-radius: 8px;padding: 12px 16px;
    width:100%;box-sizing:border-box;
    resize: vertical;
    font-size:16px;
}
.navigation-content.navigation-worksheet-properties input[type=text]:focus,
.navigation-content.navigation-worksheet-properties textarea:focus,
.navigation-content.navigation-worksheet-properties .RitchTextEditor .ql-editor:focus,
.navigation-content.navigation-worksheet-properties .dropzone.dz-clickable{
    border: 2px solid #5786FF;
    color: #09101D;
}
.navigation-content.navigation-worksheet-properties .dropzone.dz-clickable{
  border-style: dotted
}
.navigation-content.navigation-worksheet-properties input[type=text].shape-text-input{display:block;text-align:center;width:100px;margin: 0 0 20px 0;}

.navigation-content{/*position:absolute;left:0;top:0;*/z-index:2;}
.navigation-content.navigation-worksheet-properties{position:fixed;left:0px;right:auto;z-index:2;top:54px;bottom: 52px;width:100%;max-width:330px;background: #fff;transition: all 0.4s linear;}
.navigation-content.navigation-worksheet-properties.collapsed{left:-330px;}
.navigation-content.navigation-worksheet-properties .navigation-worksheet-properties-switch{/*right:0px;top:10px;left:auto;*/white-space: nowrap;}


.navigation-content.navigation-worksheet-properties.collapsed .navigation-worksheet-properties-switch{
    display: none;
}



.custom-menu-textbox{position:relative;}
.design-toolbar-properties .custom-menu {
    z-index: 1000;
    position: absolute;
    overflow: hidden;
    border: 1px solid #CCC;
    white-space: nowrap;
    font-family: sans-serif;
    background: #FFF;
    color: #333;
    border-radius: 5px;
    display:none;
}
.design-toolbar-properties .custom-menu li {
    padding: 8px 12px;
    cursor: pointer;
    background: #FFF;
    min-height:auto;
    border:none;
}
.design-toolbar-properties .custom-menu li:hover {
    background-color: #40BFFF;
    color:#fff;
}
#keyboard{display:none;}
.ui-widget .keyboard_math{display:flex; margin: 0 auto; justify-content: center; flex-direction: row; flex-wrap: wrap; }
.ui-widget .keyboard_math input{
    font-size: 24px;
    line-height: 18px;
    text-align: center;
    height: 42px;
    width: 42px;
    padding: 0;
    margin: 0;
    outline: none;
    flex: 1 0 42px;
    cursor:pointer;
    border:1px solid silver;
}

.ui-widget .keyboard textarea{height:300px;
	background: #FFFFFF;
    border: 2px solid #5786FF;
    box-sizing: border-box;
    border-radius: 8px;
    padding: 12px 16px;
    width: calc(100% - 20px);
    box-sizing: border-box;
    resize: vertical;
    font-size: 16px;
    margin:10px;
}
.ui-widget .keyboard .btn{max-width:200px;margin:0 auto 10px auto;padding: 16px 12px;}

.ql-mathjax svg{width:auto !important;height: auto !important;display: inline !important;}


.navigation-content.navigation-worksheet-properties .evaluation{display:none;padding: 22px 0 0 0;}
.navigation-content.navigation-worksheet-properties .auto-rate-on .evaluation{display:block;}
.navigation-content.navigation-worksheet-properties .manual-evaluation{padding: 20px 0;}
.navigation-content.navigation-worksheet-properties .manual-evaluation .evaluation-inputs{padding: 0 0 20px 0;}
.navigation-content.navigation-worksheet-properties .auto-rate-on .manual-evaluation{display: none;}
.navigation-content.navigation-worksheet-properties .evaluation .evaluation-title{text-align:center;display:flex;font-size:11px;font-weight:700;}
.navigation-content.navigation-worksheet-properties .evaluation .evaluation-title div{flex: 1 1 50%;padding:4px;}
.navigation-content.navigation-worksheet-properties .evaluation .evaluation-inputs{display:flex; flex-direction: column; width:100%;}

.navigation-content.navigation-worksheet-properties .evaluation .evaluation-inputs .evaluation-input{display:flex; width:100%;}
.navigation-content.navigation-worksheet-properties .evaluation .evaluation-inputs .evaluation-input div{flex: 1 1 25%;padding:4px;position:relative;}
.navigation-content.navigation-worksheet-properties .evaluation .evaluation-inputs .evaluation-input div .evaluation-crossword-number{position:absolute;left:1px;top:1px; color:#fff;font-size:12px;}
.navigation-content.navigation-worksheet-properties .evaluation input {width:100%;padding: 4px 8px;text-align:center}
.navigation-content.navigation-worksheet-properties .evaluation input.answer {background: #AAAAAA;border: 2px solid #AAAAAA;
    border-radius: 4px;
    color: #fff;
    text-align: center;
}
.navigation-content.navigation-worksheet-properties .evaluation .evaluation-inputs .evaluation-input.evaluation-totals{
  font-weight: bold;
  text-align:center;
}

.navigation-content.navigation-worksheet-properties .evaluation .evaluation-inputs .evaluation-input div.evaluation-input-dragable img,
.navigation-content.navigation-worksheet-properties .evaluation .evaluation-inputs .evaluation-input div.evaluation-input-dragable svg{
  width:40px;
  height:auto;
}

.navigation-content.navigation-worksheet-properties .chart-properties{padding: 22px 0 0 0;}
.navigation-content.navigation-worksheet-properties .chart-properties .chart-properties-title{display:flex;font-size:16px;font-weight:bold;}
.navigation-content.navigation-worksheet-properties .chart-properties .chart-properties-title div{flex: 1 1 25%;padding:4px;}
.navigation-content.navigation-worksheet-properties .chart-properties .chart-properties-inputs{display:flex; flex-direction: column; width:100%;}

.navigation-content.navigation-worksheet-properties .chart-properties .chart-properties-inputs .chart-properties-input{display:flex; width:100%;}
.navigation-content.navigation-worksheet-properties .chart-properties .chart-properties-inputs .chart-properties-input > div{flex: 1 1 50%;padding:4px;position:relative;}
.navigation-content.navigation-worksheet-properties .chart-properties .chart-properties-inputs .chart-properties-input div.delete,
.navigation-content.navigation-worksheet-properties .chart-properties .chart-properties-title div.delete-false,
.navigation-content.navigation-worksheet-properties .chart-properties .chart-properties-inputs .chart-properties-input div.delete-false{flex: 0 0 30px;padding: 4px; display: flex; align-items: center; justify-content: center; }
.navigation-content.navigation-worksheet-properties .chart-properties .chart-properties-inputs .chart-properties-input div.delete div{display: flex; align-items: center; justify-content: center; cursor: pointer; }
.navigation-content.navigation-worksheet-properties .chart-properties input {width:100%;padding: 4px 8px;text-align:center}


.navigation-content.navigation-worksheet-properties .question-settings.chart-pie .axis{display: none;}

.navigation-content.navigation-worksheet-properties input[type=radio]{margin: 0 10px 0 0;}
.navigation-worksheet-properties-switch,
.navigation-worksheet-tools-switch{display:flex; gap:10px; justify-content: center; align-items: center; position:absolute;top:10px;left: calc(100% + 20px);/*width:118px;*/height:44px;background: rgba(240, 242, 244, 1);cursor: pointer;transition:all 0.4s linear;padding: 0 8px;box-sizing:border-box;}
.navigation-worksheet-tools-switch{left:auto;z-index:1;}
.navigation-worksheet-tools-switch{left:-128px;top:10px;;}
/* Tikai print-area-tools (edit_print_area) mobilajā joslā rāda šo pogu -
   sk. @media (max-width:768px) zemāk. Pārējiem 7 šabloniem, kas koplieto
   .navigation-worksheet-tools-switch, šī poga nemaz neeksistē DOM, bet
   noklusējuma display:none pasargā, ja tā tomēr kādreiz tiktu pievienota. */
.navigation-worksheet-tools-switch .mobile-save-area{display:none;}

.mobile-view .navigation-worksheet-tools-switch{
    /*display: none;*/
}
.mobile-view .navigation-content.navigation-worksheet-tools:not(.collapsed){
    right:0;
    /*left:100%;*/
}
.mobile-view .design-side{
    right:0;
}

.navigation-content.collapsed .navigation-worksheet-properties-switch svg,.navigation-content.collapsed .navigation-worksheet-tools-switch svg{
    -moz-transform: scale(-1, 1);
    -webkit-transform: scale(-1, 1);
    -o-transform: scale(-1, 1);
    -ms-transform: scale(-1, 1);
    transform: scale(-1, 1);
    transition:all 0.4s linear;
}

#menu-icon {
  width: 23px;
  height: 15px;
  position: relative;
  -webkit-transform: rotate(0deg);
  -moz-transform: rotate(0deg);
  -o-transform: rotate(0deg);
  transform: rotate(0deg);
  -webkit-transition: .5s ease-in-out;
  -moz-transition: .5s ease-in-out;
  -o-transition: .5s ease-in-out;
  transition: .5s ease-in-out;
  cursor: pointer;
}

#menu-icon span {
  display: block;
  position: absolute;
  height: 2px;
  width: 100%;
  background: #0D1C32;
  border-radius: 0px;
  opacity: 1;
  left: 0;
  -webkit-transform: rotate(0deg);
  -moz-transform: rotate(0deg);
  -o-transform: rotate(0deg);
  transform: rotate(0deg);
  -webkit-transition: .25s ease-in-out;
  -moz-transition: .25s ease-in-out;
  -o-transition: .25s ease-in-out;
  transition: .25s ease-in-out;
}

#menu-icon span:nth-child(1) {
  top: 0px;
}

#menu-icon span:nth-child(2),#menu-icon span:nth-child(3) {
  top: 6px;
}

#menu-icon span:nth-child(4) {
  top: 12px;
}

/* opened */
.navigation-content:not(.collapsed) #menu-icon span:nth-child(1) {
  top: 18px;
  width: 0%;
  left: 50%;
}

.navigation-content:not(.collapsed) #menu-icon span:nth-child(2) {
  -webkit-transform: rotate(45deg);
  -moz-transform: rotate(45deg);
  -o-transform: rotate(45deg);
  transform: rotate(45deg);
}

.navigation-content:not(.collapsed) #menu-icon span:nth-child(3) {
  -webkit-transform: rotate(-45deg);
  -moz-transform: rotate(-45deg);
  -o-transform: rotate(-45deg);
  transform: rotate(-45deg);
}

.navigation-content:not(.collapsed) #menu-icon span:nth-child(4) {
  top: 18px;
  width: 0%;
  left: 50%;
}


.design-toolbar{padding: 32px 46px 260px 36px;box-sizing:border-box;overflow-y: auto;max-height: 100%;min-height:100%;}

.design-toolbar .design-toolbar-properties .btn{width:100%;}

.design-toolbar .task-skills{display:flex; flex-direction: row;width:100%;flex: 1 1 0px;overflow:hidden; }
.design-toolbar .task-skills .task-skill-item{flex: 1 1 0px;cursor:pointer;}
.design-toolbar .task-skills .task-skill-item .pressed{display:none;}
.design-toolbar .task-skills .task-skill-item.option-checked .pressed{display:block;}
.design-toolbar .task-skills .task-skill-item.option-checked .default{display:none;}
.design-toolbar .task-skills .task-skill-item input{display:none;}
.design-toolbar .task-skills .task-skill-item svg{width:100%;}

.time-range p {
    font-family:"Arial", sans-serif;
    font-size:14px;
    color:#333;
}
.time-range .ui-slider-horizontal {
    height: 4px;
    clear: both;
    margin: 28px auto 20px auto;
    background: rgba(153, 153, 153, 0.2);
    border-radius: 1.86886px;
    border:none;
}

.time-range .ui-slider {
    position: relative;
    text-align: left;
}
.time-range .ui-widget.ui-widget-content{border:none;}
.time-range .ui-slider-horizontal .ui-slider-range {
    top: -1px;
    height: 100%;
}
.time-range .ui-slider .ui-slider-range {
    position: absolute;
    z-index: 1;
    height: 4px;
    font-size: .7em;
    display: block;
    background: #4C95FF;
    border-radius: 1.86886px;
    transform: matrix(-1, 0, 0, 1, 0, 0);
}
.time-range .ui-slider .ui-slider-handle {
    border-radius: 50%;
    background: #F9FBFA;
    background-image: url('data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgi�pZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIGZpbGw9InVybCgjZ3JhZCkiIC8+PC9zdmc+IA==');
    background-size: 100%;
    background-image: -webkit-gradient(linear, 50% 0, 50% 100%, color-stop(0%, #C7CED6), color-stop(100%, #F9FBFA));
    background-image: -webkit-linear-gradient(top, #C7CED6, #F9FBFA);
    background-image: -moz-linear-gradient(top, #C7CED6, #F9FBFA);
    background-image: -o-linear-gradient(top, #C7CED6, #F9FBFA);
    background-image: linear-gradient(top, #C7CED6, #F9FBFA);
    width: 22px;
    height: 22px;
    -webkit-box-shadow: 0 2px 3px -1px rgba(0, 0, 0, 0.6), 0 -1px 0 1px rgba(0, 0, 0, 0.15) inset, 0 1px 0 1px rgba(255, 255, 255, 0.9) inset;
    -moz-box-shadow: 0 2px 3px -1px rgba(0, 0, 0, 0.6), 0 -1px 0 1px rgba(0, 0, 0, 0.15) inset, 0 1px 0 1px rgba(255, 255, 255, 0.9) inset;
    box-shadow: 0 2px 3px -1px rgba(0, 0, 0, 0.6), 0 -1px 0 1px rgba(0, 0, 0, 0.15) inset, 0 1px 0 1px rgba(255, 255, 255, 0.9) inset;
    -webkit-transition: box-shadow .3s;
    -moz-transition: box-shadow .3s;
    -o-transition: box-shadow .3s;
    transition: box-shadow .3s;
}
.time-range .ui-slider .ui-slider-handle {
    position: absolute;
    z-index: 2;
    width: 15px;
    height: 15px;
    cursor: default;
    border: none;
    cursor: pointer;
    background: #FFFFFF;
    box-shadow: 0px 1.49509px 7.47544px rgba(60, 80, 111, 0.05);
}
.time-range .ui-slider .ui-slider-handle:after {
    content:"";
    display:none;
    position: absolute;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    top: 50%;
    margin-top: 0px;
    left: 50%;
    margin-left: 0px;
    background: #FFFFFF;
    box-shadow: 0px 1.49509px 7.47544px rgba(60, 80, 111, 0.05);
}
.time-range .ui-slider-horizontal .ui-slider-handle {
    top: -6px;
    margin-left: -6px;
}
.time-range .ui-slider a:focus {
    outline:none;
}

.slider-range {
  width: 90%;
  margin: 0 auto;
}
.time-range {
  width: 100%;
  height:80px;
}

.slider-range .slider-time-wrap{position:absolute;top:-30px;margin-left:-12px;width:26px;height:23px;background:url(/images/svg/worksheet/tools/slider-time.svg) no-repeat center;
    font-family: Lato;
    font-style: normal;
    font-weight: normal;
    font-size: 10px;
    line-height: 12px;
    text-align: center;
    color: #333333;
}

.slider-range label {
    position: absolute;
    width: 20px;
    margin-left: -10px;
    text-align: center;
    margin-top: 20px;
    font-family: var(--brand-font, 'Roboto');
    font-style: normal;
    font-weight: 500;
    font-size: 8.97053px;
    line-height: 9px;
    color: #999999;

}



.design-toolbar-properties ul li {width:100%;min-height:30px;background:silver;border-bottom:1px solid #fff;
    background: #DADEE3;
    border-radius: 5px;
    border-color: #DADEE3;
    display: flex;
    align-content: center;
    align-items: center;
    padding: 0 8px;
    margin: 0 0 4px 0;
    cursor: move;
}

.design-toolbar-properties ul li svg{height:24px;width:auto;display: block;}
.design-content{display:flex; width:100%;height:calc(100% - 0px);position:relative;overflow:hidden;}

.design-toolbar .design-toolbar-properties .question-title-input{padding: 0 0 22px 0;}

.design-toolbar .design-toolbar-properties .question-title-input .container-custom-checkbox{height:auto;}

.design-toolbar .design-toolbar-properties .question-title-input .select {
    position: relative;
    display: inline-block;
    width: 100%;
}
.design-toolbar .design-toolbar-properties .question-title-input .select select {
        font-family: 'Arial';
        display: inline-block;
        width: 100%;
        cursor: pointer;
        padding: 10px 15px;
        outline: 0;
        border: 0px solid #000000;
        border-radius: 4px;
        background: #F4F5F7;
        color: #7b7b7b;
        appearance: none;
        -webkit-appearance: none;
        -moz-appearance: none;
    }
.design-toolbar .design-toolbar-properties .question-title-input .select select::-ms-expand {
            display: none;
        }
.design-toolbar .design-toolbar-properties .question-title-input .select select:hover,
.design-toolbar .design-toolbar-properties .question-title-input .select select:focus {
            color: #000000;
            background: #cccccc;
        }
.design-toolbar .design-toolbar-properties .question-title-input .select select:disabled {
            opacity: 0.5;
            pointer-events: none;
        }
.design-toolbar .design-toolbar-properties .question-title-input .select_arrow {
    position: absolute;
    top: 8px;
    right: 16px;
    width: 6px;
    height: 6px;
    border: solid #7b7b7b;
    border-width: 0 2px 2px 0;
    display: inline-block;
    padding: 3px;
    transform: rotate(45deg);
    -webkit-transform: rotate(45deg);
}
.design-toolbar .design-toolbar-properties .question-title-input .select select:hover ~ .select_arrow,
.design-toolbar .design-toolbar-properties .question-title-input .select select:focus ~ .select_arrow {
    border-color: #000000;
}
.design-toolbar .design-toolbar-properties .question-title-input .select select:disabled ~ .select_arrow {
    border-top-color: #cccccc;
}

.design-toolbar .design-toolbar-properties .question-title-input .select-row-col{display:flex;flex-direction: row; align-items: center; align-content:center;margin: 0 0 15px 0;}
.design-toolbar .design-toolbar-properties .question-title-input .select-row-col .select{width:90px;}
.design-toolbar .design-toolbar-properties .question-title-input .select-row-col .row-col-title{padding-left:10px;}
.design-toolbar .design-toolbar-properties .question-title-input .select-row-col .row-col-title h3{padding:0px;}

.design-toolbar .design-toolbar-properties .question-title-input .text-editor-tip{font-size:16px;font-weight:bold;}

.design-toolbar h3{font-family: var(--brand-font, 'Roboto');
    font-style: normal;
    font-weight: bold;
    font-size: 16px;
    line-height: 19px;
    color: #1E2E57;
    padding: 0 0 12px 0;
}

.design-toolbar-properties #textBox ul,
.gridwrap .worksheet-task-item.resize-drag-content .text-editor ul,
.design-toolbar-properties #textBox ol,
.gridwrap .worksheet-task-item.resize-drag-content .text-editor ol{padding: 10px 0 10px 0px ;}
.design-toolbar-properties #textBox ul li,
.gridwrap .worksheet-task-item.resize-drag-content .text-editor ul li{position:relative;background:none;border:none; list-style-type: disc;padding-left:14px;min-height:auto;}
.design-toolbar-properties #textBox ol li,
.gridwrap .worksheet-task-item.resize-drag-content .text-editor ol li{background:none;border:none; ;padding-left:0px;min-height:auto;}

.design-toolbar-properties #textBox ul li:before {
    content: "";
    position:absolute;
    left: 0px;
    top: 8px;
    padding:0px;
    background: #313338;
    display:inline-block;
    width:6px;height:6px;border-radius:6px;
}

.design-toolbar .design-toolbar-properties .properties-tool.text-formating{height:auto;display:flex;flex-direction:row;-webkit-flex-wrap: nowrap;flex-wrap: nowrap;margin: 0 0 22px 0;
    border: none;
    box-sizing: border-box;
    padding: 0px;
}
.design-toolbar .design-toolbar-properties .properties-tool.text-formating .ql-container.ql-snow{
    border:none;
}
.ql-snow .ql-tooltip{
    left:0px !important;
    top:0px !important;
    width:100%;
    height:100%;
}
.design-toolbar .design-toolbar-properties .ql-snow .ql-tooltip{
    transform: none;

    background: #FFFFFF;
    border: 2px solid #D6E4EC;
    color: rgba(30, 46, 87, 0.3);
    box-sizing: border-box;
    border-radius: 8px;
    padding: 12px 8px;
    width: 100%;
    box-sizing: border-box;
    font-size: 16px;
}
.design-toolbar .design-toolbar-properties .mathquill4quill-mathquill-input{width:140px;}

.design-toolbar .design-toolbar-properties .mathquill4quill-history-container{
    width:100%;
    height: auto;
    overflow-y: auto;
    overflow-x: hidden;
}
.design-toolbar .design-toolbar-properties .mathquill4quill-operator-button {
    padding: 5px;
    margin:0;
    width: 25%;
}
.design-toolbar .design-toolbar-properties .history-formula-container{
    height: calc(100% - 200px);
    display: flex;
    flex-direction: column;
}
.design-toolbar .design-toolbar-properties .mathquill4quill-history-button{
    width:100%;
}

.design-toolbar .design-toolbar-properties .properties-tool.text-formating > div{flex: 1 1;position:relative;}
.design-toolbar .design-toolbar-properties .properties-tool.text-formating > div button{width:100%;height:0px;padding-top:100%;cursor:pointer; background-position: center;/*background-repeat: no-repeat;background-size: contain;*/}


.design-toolbar .design-toolbar-properties .properties-tool.text-formating div.bold button{background-image: url(/images/svg/worksheet/textformating/bold.svg);}
.design-toolbar .design-toolbar-properties .properties-tool.text-formating div.bold button:hover{background-image: url(/images/svg/worksheet/textformating/bold.svg);}
.design-toolbar .design-toolbar-properties .properties-tool.text-formating div.italic button{background-image: url(/images/svg/worksheet/textformating/italic.svg);}
.design-toolbar .design-toolbar-properties .properties-tool.text-formating div.italic button:hover{background-image: url(/images/svg/worksheet/textformating/italic.svg);}
.design-toolbar .design-toolbar-properties .properties-tool.text-formating div.underline button{background-image: url(/images/svg/worksheet/textformating/underline.svg);}
.design-toolbar .design-toolbar-properties .properties-tool.text-formating div.underline button:hover{background-image: url(/images/svg/worksheet/textformating/underline.svg);}
.design-toolbar .design-toolbar-properties .properties-tool.text-formating div.textcolor button{background-image: url(/images/svg/worksheet/textformating/textcolor.svg);}
.design-toolbar .design-toolbar-properties .properties-tool.text-formating div.textcolor button:hover{background-image: url(/images/svg/worksheet/textformating/textcolor.svg);}
.design-toolbar .design-toolbar-properties .properties-tool.text-formating div.textsize button{background-image: url(/images/svg/worksheet/textformating/textsize.svg);}
.design-toolbar .design-toolbar-properties .properties-tool.text-formating div.textsize button:hover{background-image: url(/images/svg/worksheet/textformating/textsize.svg);}
.design-toolbar .design-toolbar-properties .properties-tool.text-formating div.bullet button{background-image: url(/images/svg/worksheet/textformating/bullet.svg);}
.design-toolbar .design-toolbar-properties .properties-tool.text-formating div.bullet button:hover{background-image: url(/images/svg/worksheet/textformating/bullet.svg);}
.design-toolbar .design-toolbar-properties .properties-tool.text-formating div.ordered button{background-image: url(/images/svg/worksheet/textformating/ordered.svg);}
.design-toolbar .design-toolbar-properties .properties-tool.text-formating div.ordered button:hover{background-image: url(/images/svg/worksheet/textformating/ordered.svg);}


.design-toolbar .design-toolbar-properties .properties-tool.text-formating div.formula button{background-image: url(/images/svg/worksheet/textformating/formula.svg?v=12);}
.design-toolbar .design-toolbar-properties .properties-tool.text-formating div.formula button:hover{background-image: url(/images/svg/worksheet/textformating/formula.svg?v=12);}


.design-toolbar .design-toolbar-properties .properties-tool.text-formating div.align button{background-image: url(/images/svg/worksheet/textformating/align.svg?v=12);}
.design-toolbar .design-toolbar-properties .properties-tool.text-formating div.align button:hover{background-image: url(/images/svg/worksheet/textformating/align.svg?v=12);}



.design-toolbar .design-toolbar-properties .properties-tool.text-formating div.fontfamily button{background-image: url(/images/svg/worksheet/textformating/fontfamily.svg?v=4);}
.design-toolbar .design-toolbar-properties .properties-tool.text-formating div.fontfamily button:hover{background-image: url(/images/svg/worksheet/textformating/fontfamily.svg?v=4);}


.design-toolbar .design-toolbar-properties .properties-tool.text-formating .ql-size-options,
.design-toolbar .design-toolbar-properties .properties-tool.text-formating .ql-fontfamily-options,
.design-toolbar .design-toolbar-properties .properties-tool.text-formating .ql-align-options{
  position:absolute;left:0;top:40px;z-index:99;
  display:none;
}
.design-toolbar .design-toolbar-properties .properties-tool.text-formating .ql-size-option,
.design-toolbar .design-toolbar-properties .properties-tool.text-formating .ql-fontfamily-option,
.design-toolbar .design-toolbar-properties .properties-tool.text-formating .ql-align-option{
  width:32px;height:32px;
  background: #FFFFFF;
  box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  display:flex;
  justify-content:center;
  align-items:center;
  cursor:pointer;
  font-weight: 500;
  font-size: 16px;
  line-height: 24px;
  color: #1E2E57;
}
.design-toolbar .design-toolbar-properties .properties-tool.text-formating .ql-fontfamily-option{
  width: auto;
  padding: 0px 6px;
  justify-content: flex-start;
}
.design-toolbar .design-toolbar-properties .properties-tool.text-formating .ql-size-option:hover,
.design-toolbar .design-toolbar-properties .properties-tool.text-formating .ql-fontfamily-option:hover,
.design-toolbar .design-toolbar-properties .properties-tool.text-formating .ql-align-option:hover{
    /*background: #1E2E57;*/
    box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    color:#fff;
}

/* The switch - the box around the slider */
.switch-container{width:100%;}
.switch-container label{display:flex;width:100%; align-items: center;}
.switch-container .switch-title{
    font-family: var(--brand-font, 'Roboto');
    font-style: normal;
    font-weight: bold;
    font-size: 16px;
    line-height: 19px;
    color: #1E2E57;
    width:100%;
}

.switch-container .switch {
  position: relative;
  display: inline-block;
  flex: 0 0 56px;
  width: 56px;
  height: 32px;
}

/* Hide default HTML checkbox */
.switch-container .switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

/* The slider */
.switch-container .slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #9098A1;
  -webkit-transition: .4s;
  transition: .4s;
}

.switch-container .slider:before {
  position: absolute;
  content: "";
  height: 24px;
  width: 24px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  -webkit-transition: .4s;
  transition: .4s;
}
.switch-container input:checked + .slider {
  background-color: #40BFFF;
}
.switch-container input:focus + .slider {
  box-shadow: 0 0 1px #40BFFF;
}
.switch-container input:checked + .slider:before {
  -webkit-transform: translateX(24px);
  -ms-transform: translateX(24px);
  transform: translateX(24px);
}
/* Rounded sliders */
.switch-container .slider.round {
  border-radius: 34px;
}
.switch-container .slider.round:before {
  border-radius: 50%;
}

.profile-settings .switch-container{padding: 0px 0 20px 0;}
.profile-settings .switch-container .switch-title{font-weight: normal}

.design-toolbar .question-settings .question-item{margin: 0 0 22px 0;}
.design-toolbar .question-settings .question-options{display:flex;padding: 0 0 4px 0;}

.design-toolbar .question-settings .question-options .answer-option{
    background: #FFFFFF;
    border: 1px solid rgba(11, 95, 255, 0.5);
    box-sizing: border-box;
    border-radius: 2px;
    width:44px;height:44px;
    flex: 0 0 44px;
    cursor:pointer;
}
.design-toolbar .question-settings .question-options .answer-option.sort-sequence-option{background: #A5ABB3;border:none;border-radius: 36px;overflow:hidden;}
.design-toolbar .question-settings .question-options .answer-option.sort-sequence-option input{border:none;background:none;border-radius: 36px;color: #FFFFFF;}
.design-toolbar .question-settings .question-options .answer-option.option-checked{background: url(/images/svg/checkbox.svg) no-repeat center;}
.design-toolbar .question-settings .question-options .answer-option-delete,
.design-toolbar .dragable-settings .dragable-option-items .delete-dragable-group{background: #DADEE3;border-radius: 36px;width:44px;height:44px;margin: 0 0 5px 0px;display:flex;justify-content: center; align-items: center;cursor:pointer; }
.design-toolbar .question-settings .question-options .answer-option-delete svg path,
.design-toolbar .dragable-settings .dragable-option-items .delete-dragable-group svg path{fill:#200E32;}
.add-answer-option-item .btn,
.add-dragable-group .btn{height:44px;background: #51E69C;border-radius: 5px;padding:0;}
.add-answer-option-item .btn svg{height:22px;}


.design-toolbar .dragable-settings .group-details-item{padding: 0 0 10px 0;margin: 0 0 10px 0;border-bottom: 1px dotted silver;}

.add-new-dragable-group-item{
  display: flex;
  width:100%;
  padding: 10px 0;
  align-items: center;
}
.add-new-dragable-group-item button{background:none;display: block;cursor:pointer;}
.add-new-dragable-group-item .custom-select{flex:1;padding: 0 10px 0 0;}




.left-navigation{padding-top:84px;}
.navigation-worksheet-tools .left-navigation{height:100%;padding:0;/*padding-top:50px;height:calc(100% - 50px)*/}
.left-navigation ul li a{width:100%;/*height:44px;*/box-sizing: border-box;padding: 4px 0 4px 16px; display:flex;color:#fff; align-content: center; align-items: center; }
.left-navigation ul li a div{padding: 0 17px 0 0;/*height:24px;*/}
.left-navigation ul li a .menu-name{width:100%;display:flex;color:#fff;justify-content: space-between; align-content: center; align-items: center; }
.left-navigation ul li a .menu-name .unread{display:flex;align-items: center;
  background: #51E69C;
  border-radius: 10px;
  justify-content: center;
  text-align:center;
  padding: 0 10px;
}
.left-navigation ul li a div svg path{fill:#fff;fill-opacity:1; }
.left-navigation ul ul{padding-left:10px;}
.left-navigation ul li.drop-down-arrow .drop-down{transform: scale(-1);padding: 0 0px 0 0;}

.main-content{display:flex; flex-direction: column;flex-grow: 1;}
.main-content.worksheet{background: rgba(225, 229, 234, 1);}
.admin .main-content.worksheet{
    padding: 0px 0 0 0;
}
.admin .worksheet-content{
    bottom:0;
    position:relative;
    top:0;
    min-height: calc(100% - 0px);
}
.admin .navigation-content.navigation-worksheet-tools{bottom:0;}
.admin .navigation-worksheet-tools-switch{
    display:none;
}

.admin .design-wrap{
    /* ⚠️ Bija "20px 0 20px 20px".
       APAKŠĒJIE 20px noņemti: tie nāca virsū jau esošajiem .sides_3dmodel
       40px, t.i. kopā 60px tukšuma zem satura.
       KREISIE 20px PALIEK. Biju tos noņēmis, domājot, ka tā ir simetriskāk,
       jo sānjosla pa labi beidzas pie pašas loga malas - bet sānjosla ir
       rāmja elements ar savu apmali, savukārt teksts pie pašas malas lasās
       slikti. Tas nav tas pats gadījums, un saturam atstarpe ir vajadzīga. */
    padding: 0 0 0 20px;
    padding-top: 55px !important;
}
/* print-area-tools (apdrukas zonas canvas redaktors) skatam AUGSTĀK esošā
   20px kreisā/apakšējā padding TIEŠI rada redzamu tukšu joslu - canvas
   VIENMĒR aizpilda TIEŠI visu .design-side, tāpēc jebkura .design-wrap
   padding tur paliek par tukšu malu, nevis "elpošanas vietu" ap rīkiem
   (kā tas ir citos worksheet skatos, kur šis padding ir vajadzīgs un
   PALIEK - tāpēc NEMAINĀM bāzes .admin .design-wrap noteikumu augstāk,
   tikai override TIEŠI šim skatam). padding-top (header/josla clearance)
   PALIEK neskarts - to jau pareizi pārvalda esošie noteikumi. */
.wrap-content.worksheet-content:has(.print-area-tools) .design-wrap{
    padding-left: 0 !important;
    padding-right: 0 !important;
    padding-bottom: 0 !important;
}

.admin-page-body{
    display:flex;
    align-items:flex-start;
    /* Bija 32px. Visas pārējās atstarpes admin pusē ir 20px, tāpēc šī viena
       izlēca - nomērīts: saturs beidzas 1100, sānjosla sākas 1132. */
    gap:20px;
}
.admin-page-content{
    flex:1;
    min-width:0;
}
.admin-sidebar{
    flex:0 0 310px;
    background:#fff;
    border-left:1px solid #C3CBD5;
    border-radius:0px;
    padding:16px 0;
}
.admin-sidebar-nav{
    display:flex;
    flex-direction:column;
}
.admin-sidebar-nav-item{
    display:flex;
    align-items:center;
    gap:10px;
    padding:11px 20px;
    font-size:14px;
    color:#15191E;
    text-decoration:none;
}
.admin-sidebar-nav-item svg{
    flex:0 0 auto;
    color:#4B5B73;   /* kontūru ikonas (stroke=currentColor) */
}
.admin-sidebar-nav-item.disabled svg{color:#98A2B0;}
a.admin-sidebar-nav-item:hover{
    background:#F9FAFB;
}
.admin-sidebar-nav-item.active{
    background:var(--brand-accent-tint, #F3E1E9);
    color:var(--brand-accent, #9A2F58);
    font-weight:600;
    border-radius:4px;
}
.admin-sidebar-nav-item.active svg{
    color:var(--brand-accent, #9A2F58);
}
.admin-sidebar-nav-item.disabled{
    color:#9DA4AE;
    cursor:default;
}
.admin-sidebar-badge{
    margin-left:auto;
    font-size:10px;
    color:#9DA4AE;
    background:#F0F2F4;
    border-radius:10px;
    padding:2px 8px;
    white-space:nowrap;
}
.admin-mobile-menu-toggle{display:none;align-items:center;justify-content:center;width:34px;height:34px;margin-left:4px;border:none;background:none;border-radius:8px;cursor:pointer;flex:0 0 auto;}
.admin-mobile-menu-toggle:hover{background:#F1F1F2;}
.admin-sidebar-backdrop{display:none;}
.admin-sidebar-mobile-close{display:none;}
.admin-sidebar-collapse{display:none;}
@media (min-width:769px){
    .admin-sidebar.sb-anim{transition:flex-basis .2s ease;}   /* animācija tikai pēc klikšķa, nevis lapas ielādē */
    /* rokturītis uz sānjoslas malas - tāds pats kā 3D rīka paneļa rokturītis (design/layouts/studio.css .st-toggle), tikai spoguļots */
    .admin-sidebar{position:relative;}
    .admin-sidebar-collapse{display:flex;align-items:center;justify-content:center;position:fixed;left:var(--sb-left,0px);top:96px;visibility:hidden;width:20px;height:56px;padding:0;border:1px solid #C3CBD5;border-right:0;border-radius:10px 0 0 10px;background:#fff;color:#5B6675;cursor:pointer;z-index:5;box-shadow:-2px 0 8px rgba(20,30,50,.08);transition:color .15s;}
    .admin-sidebar-collapse.is-ready{visibility:visible;}   /* rokturis sākumā ir pret pirmo izvēlnes vienumu (Home) un ritinot iet līdzi (nekad nepaceļas virs ekrāna augšas); novietojumu iestata JS (admin_sidebar.htm.inc) */
    .admin-sidebar-collapse:hover{color:#15191E;}
    .admin-sidebar-collapse svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round;transition:transform .22s;}
    .admin-sidebar.is-collapsed{flex:0 0 64px;}
    .admin-sidebar.is-collapsed .admin-sidebar-collapse svg{transform:rotate(180deg);}
    .admin-sidebar.is-collapsed .admin-sidebar-nav-item{justify-content:center;padding:11px 0;gap:0;font-size:0;}
    .admin-sidebar.is-collapsed .admin-sidebar-badge{display:none;}
    /* garās lapās izvēlne paliek redzama, ritinot lapu (iepriekš aizritēja līdzi lapai, un augšējie punkti pazuda zem galvenes) */
    .admin-sidebar-nav{position:sticky;top:72px;}
}
.admin .add-product-top h1{
    font-size: 40px;
    font-weight: 600;
    line-height: 52px;
    letter-spacing: -0.025em;
    text-align: center;
    color:#000;
    /* ⚠️ Bija 40px apakšā. Gandrīz visās admin lapās uzreiz zem virsraksta
       nāk .add-product-steps, kam jau ir savs 60px augstums ar 40px pogām
       centrā (t.i. ~10px atstarpe no abām pusēm) - tie 40px tur bija tīra
       tukša josla, kas atņēma augstumu saturam zemāk.
       Vienīgā lapa, kur zem virsraksta NAV soļu joslas, ir Orders
       (orders_list.htm.inc - uzreiz seko .admin-orders-body); tai atstarpi
       dodam tur, sk. .admin-orders-body noteikumu zemāk. */
    padding:0;
}
/* Dizaina nosaukuma lauks (ievades rinda virsrakstā) pieskārās fiksētajai galvenei - dodam atstarpi no augšas un nedaudz zem */
.admin .add-product-top h1:has(input){
    padding-top: 24px;
    padding-bottom: 6px;
}
@media (max-width:768px){
    .admin .add-product-top h1:has(input){padding-top:16px;padding-bottom:12px;}
}
/* Vienīgā admin lapa, kur zem virsraksta uzreiz sākas saturs (nevis soļu
   josla ar savu atstarpi) - tāpēc atstarpe jādod šeit. Nomērīts: bez tās
   pasūtījumu kartīte pieskartos virsrakstam.
   ⚠️ Tikai no 769px: mobilajā skatā virsrakstam PALIEK savs padding-bottom
   16px (sk. media max-width:768), un šie 24px tur summētos ar to. */
@media (min-width:769px){
    .admin .admin-orders-body{
        margin-top:24px;
    }
}
.admin .add-product-top .add-product-steps{
    display: flex;
    justify-content: space-between;
    align-items: center;
}
/* soļu josla (produktu saraksts: Add product; priekšskatījums/iestatīšana: Atpakaļ / Publicēt): pogas bija piekļautas galvenei un kartei - atstarpe virs un zem */
.admin .add-product-top .add-product-steps{ padding: 16px 0 14px; }
.admin .add-product-top .add-product-steps .step-current,
.admin .add-product-top .add-product-steps .step-forward{
    display: flex;
    padding: 0 10px;
    align-items: center;
    gap:10px;
}
.admin .add-product-top .add-product-steps .step-current .arrow{
    display: flex;
}
.admin .add-product-top .add-product-steps .step-current .active{
    color:var(--brand-accent, #9A2F58);
    font-weight:600;
}
.admin .add-product-top .add-product-steps .step-current div{
    padding: 0 10px;
}
.admin .add-product-container,
.admin .add-3d-model{
    border: 1px solid #C3CBD5;
    background:#FFFFFF;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    padding:20px;
    box-sizing: border-box;

}

.admin .add-product-container .designs-list{
    padding:20px 0;
}
.admin .add-product-container .designs-list .row {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  width: 100%;


    font-family: Inter;
    font-weight: 400;   /* saraksta teksts visur parasts (kita standarts): hierarhiju veido izmērs un krāsa, nevis treknums */
    font-size: 14px;
    leading-trim: NONE;
    line-height: 20px;
    letter-spacing: 1%;
    vertical-align: middle;
    font-variant-numeric-figure: lining-nums;
    font-variant-numeric-spacing: tabular-nums;


}
/* Produktu saraksts ir TABULA, nevis vienkārši elementu rinda. Ar flex katra
   rinda dalīja platumu pati par sevi, un tas NESAKRITA: virsraksta rindas
   8./9. šūna ir tukšs <div> ar 10px padding, datu rindās tur ir
   .row-publish/.row-actions ar padding:0 - bez border-box tie 20px katrā
   pusē tiek pieskaitīti VIRSŪ flex-basis, tāpēc datu rindām brīvās kolonnas
   sanāca 172px, bet virsrakstam 165px. Rezultāts - virsraksts aizbīdījās
   prom no saviem datiem, un jo tālāk pa labi, jo vairāk (Print area 10px,
   Shopify 19px, Preset 27px). Viens kopīgs grid-template-columns abām rindu
   šķirnēm to izslēdz pēc būtības.
   ⚠️ Pasūtījumu saraksts koplieto TOS PAŠUS .designs-list .row stilus, bet
   tam ir 10 pavisam citas kolonnas - tāpēc .orders-list paliek uz flex. */
.admin .add-product-container .designs-list:not(.orders-list) .row{
  display: grid;
  grid-template-columns: 70px 80px minmax(0,0.7fr) minmax(0,1.6fr) minmax(0,1fr) minmax(0,1fr) minmax(0,1fr) 56px 56px;
  align-items: center;
}
.admin .add-product-container .designs-list .row.even{
  border: 1px solid #E7EAEE;
  background: #F9FAFB;
  border-radius:3px;
}
.admin .add-product-container .designs-list .row.admin-order-row-highlight{
  border: 1px solid var(--brand-accent, #9A2F58);
  background: var(--brand-accent-tint, #F3E1E9);
  border-radius:3px;
}
.admin .add-product-container .designs-list .row div {
  display: flex;
  flex-direction: column;
  flex-basis: 100%;
  flex: 1;
  padding:10px;
}
.admin .add-product-container .designs-list .row div:first-child,
.admin .add-product-container .designs-list .row div:last-child,
.admin .add-product-container .designs-list .row .row-checkbox{
    flex: 0 0 50px;
    text-align:center;
}
.admin .add-product-container .designs-list .row .btn{
    padding:1px 4px;
    margin:0;
    font-size:12px;
}
.admin .add-product-container .designs-list .row .btn.btn-secondary{

}
.admin .add-product-container .designs-list .row .btn.delete-product{
    background: var(--brand-accent, #9A2F58);
}
.admin .add-product-container .designs-list .row .col-image{
    flex: 0 0 60px;
    padding:5px 10px;
}
.admin .add-product-container .designs-list .row .col-image img{
    width:44px;
    height:44px;
    object-fit:cover;
    border-radius:4px;
    background:#F0F2F4;
    display:block;
}
.admin .add-product-container .designs-list .row .status-pill{
    display:inline-block;
    padding:4px 10px;
    border-radius:12px;
    font-size:12px;
    font-weight:400;
    white-space:nowrap;
    /* .row div ir flex-direction:column, tāpēc "pill" kā flex elements tika
       izstiepts pa VISU kolonnas platumu (tie gari zaļie taisnstūri) - pats
       display:inline-block flex konteinerā neko nenozīmē. Skaidrs width
       atslēdz align-items:stretch, tāpēc atgriež satura platumu.
       ⚠️ NEVIS align-self:flex-start - mobilajā skatā šūna ir RINDAS flex ar
       align-items:center, un tur align-self pārvalda vertikāli, t.i. tas
       pašu problēmu nerisinātu, toties sabojātu mobilo centrējumu. */
    width:fit-content;
}
/* ⚠️ TĪŠI ZAĻŠ (nevis rozā/maroon) - "ON" šeit (Shopify/Preset/Print area)
   ir POZITĪVS/PABEIGTĪBAS statuss, nevis brīdinājums, tāpēc lieto TO PAŠU
   zaļo, ko jau lieto status-pill-published un "Done" nozīmītes - rozā
   izskatījās pēc problēmas/brīdinājuma, kad vērtība faktiski ir pareiza. */
.admin .add-product-container .designs-list .row .status-pill-on{
    background:#E3F1E7;
    color:#1E7B34;
}
.admin .add-product-container .designs-list .row .status-pill-off{
    background:#F0F2F4;
    color:#6D7175;
}
.admin .add-product-container .designs-list .row .status-pill-published{
    background:#E3F1E7;
    color:#1E7B34;
}
.admin .add-product-container .designs-list .row .status-pill-unpublished{
    background:var(--brand-accent-tint, #F3E1E9);
    color:var(--brand-accent, #9A2F58);
}

/* "..." rindas darbību izvēlne (Edit print area/Setup 3D model/Preview 3D
   model/Delete apvienoti vienā pogā, sk. designs_list_item.htm.inc) -
   aizstāj 4 atsevišķas vienmēr redzamas pogas. */
.admin .add-product-container .designs-list .row .row-actions{
    position:relative;
    display:flex;
    justify-content:center;
    flex:1;
    padding:0;
}
/* ⋮ un publicēšanas ikonu pogas: css/ui-kit.css (.ui-btn-ghost .ui-btn-icon); šeit tikai atvērtā stāvokļa fons */
.admin .add-product-container .designs-list .row .row-actions.open .row-actions-trigger{ background:var(--ui-line,#E7EAEE); }
.admin .add-product-container .designs-list .row .row-actions-menu{
    display:none;
    position:absolute;
    top:calc(100% + 4px);
    right:0;
    z-index:10;
    min-width:180px;
}
.admin .add-product-container .designs-list .row .row-actions.open .row-actions-menu{
    display:flex;
}
/* vienumu izskats (teksts, krāsas, hover, atspējots, dzēšana): css/ui-kit.css .ui-menu-item */
/* atzīmēšanas rūtiņas produktu sarakstā: izskats no css/ui-kit.css (input.ui-check-input) */
.admin .add-product-container .designs-list .row .row-checkbox input.ui-check-input{display:block;margin:0 auto;}
.admin .add-product-container .designs-list .row.is-selected{background:var(--brand-accent-tint, #E3F1FC);}
/* setup lapa: obligātā produkta nosaukuma tooltips */
.setup-name-row{position:relative;}
#setup-product-name.is-invalid{border-color:#D64545 !important;box-shadow:0 0 0 3px #F8D7D7;}
.setup-name-tip{position:absolute;left:0;top:calc(100% + 8px);z-index:20;display:flex;flex-direction:column;gap:2px;max-width:340px;padding:10px 14px;border-radius:8px;background:#1f2937;color:#fff;font-size:13px;line-height:1.35;box-shadow:0 8px 24px rgba(0,0,0,.22);}
.setup-name-tip[hidden]{display:none !important;}
.setup-name-tip b{font-size:13px;}
.setup-name-tip::before{content:"";position:absolute;left:22px;top:-6px;width:12px;height:12px;background:#1f2937;transform:rotate(45deg);border-radius:2px;}

/* rīkjoslas "Actions" izvēlne atzīmētajiem produktiem (pie Status / Order by) */
.designs-list-toolbar .bulk-actions{position:relative;}
.designs-list-toolbar .bulk-actions.open .bulk-actions-trigger{background:var(--ui-soft,#F0F2F4);border-color:var(--ui-line-strong,#C3CBD5);}   /* poga: css/ui-kit.css .ui-btn */
.designs-list-toolbar .bulk-actions-badge{min-width:18px;height:18px;padding:0 5px;box-sizing:border-box;border-radius:9px;background:#15191E;color:#fff;font-size:11px;font-weight:700;line-height:18px;text-align:center;}
.designs-list-toolbar .bulk-actions-badge[hidden]{display:none;}
.designs-list-toolbar .bulk-actions-menu{display:none;position:absolute;top:calc(100% + 4px);left:0;z-index:30;min-width:230px;}
.designs-list-toolbar .bulk-actions.open .bulk-actions-menu{display:flex;}
/* (vecais virsraksta variants - netiek lietots) */
.admin .add-product-container .designs-list .row .heading-actions .row-actions-trigger{position:relative;}
.admin .add-product-container .designs-list .row .row-actions-badge{
    position:absolute;top:-4px;right:-6px;min-width:16px;height:16px;padding:0 4px;box-sizing:border-box;border-radius:8px;
    background:#15191E;color:#fff;font-size:10px;font-weight:700;line-height:16px;text-align:center;
}
.admin .add-product-container .designs-list .row .row-actions-badge[hidden]{display:none;}
.admin .add-product-container .designs-list .row .row-actions-hint{display:block;padding:8px 10px;font-size:12px;line-height:1.35;color:#5B6675;white-space:normal;max-width:240px;}
.admin .add-product-container .designs-list .row .row-actions-item[disabled]{color:#B0B6BE;cursor:default;pointer-events:none;}
.admin .add-product-container .designs-list .row .row-actions-item[disabled].row-actions-item-danger{color:#e3b5b1;}
.bedit-row{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:10px 0;font-size:14px;font-weight:600;color:#15191E;}
.bedit-row[hidden]{display:none !important;}
.bedit-row select{min-width:200px;width:auto;}
.bedit-result{margin-top:8px;color:#15191E;font-weight:600;}
.bedit-result[hidden]{display:none !important;}
/* izvēlne atveras uz augšu, ja zem pogas nepietiek vietas (neslīd zem ekrāna apakšas) */
.admin .add-product-container .designs-list .row .row-actions.open-up .row-actions-menu,
.admin .add-product-container .designs-list .row .row-publish.open-up .row-publish-menu{top:auto;bottom:calc(100% + 4px);}
.admin .add-product-container .designs-list .row .row-actions-divider{
    height:1px;
    margin:6px 4px;
    background:#E7EAEE;
    /* ⚠️ .row div (sk. augstāk) attiecas ARĪ uz šo ligzdoto <div> un uzliek
       tam padding:10px + flex:1 1 0%. Fons krāso padding kastīti, tāpēc 1px
       līnija uzzīmējās kā 21px augsta pelēka josla - vairāk kā atsevišķs,
       tukšs izvēlnes ieraksts nekā atdalītājs. flex-basis:0 kolonnas flex
       konteinerā savukārt atceļ height:1px, tāpēc jāatgriež arī flex. */
    padding:0;
    flex:0 0 auto;
}
.admin .add-product-container .designs-list .row .row-actions-item-badge{
    display:inline-block;
    margin-left:4px;
    padding:1px 6px;
    border-radius:8px;
    font-size:10px;
    font-weight:700;
    text-transform:uppercase;
    letter-spacing:0.02em;
    background:#F0F2F4;
    color:#6D7175;
}
.admin .add-product-container .designs-list .row .row-actions-item-badge-done{
    background:#E3F1E7;
    color:#1E7B34;
}

/* "Publish settings" izvēlne (Published/Preset/Show in Shopify) - atsevišķa
   no "..." darbību izvēlnes (cita ikona - regulētāju/slīdņu izskats, nevis
   vertikāli punkti - lai vizuāli atšķirtos "iestatījumi" no "darbībām"). */
.admin .add-product-container .designs-list .row .row-publish{
    position:relative;
    display:flex;
    justify-content:center;
    flex:1;
    padding:0;
}
.admin .add-product-container .designs-list .row .row-publish.open .row-publish-trigger{ background:var(--ui-line,#E7EAEE); }
/* ⚠️ Popup ir position:absolute ZEM sava trigera - rindas ir cieši sablīvētas,
   tāpēc garāks popup vizuāli PĀRKLĀJ nākamo(-ās) rindu(-as) apakšā, radot
   iespaidu, ka tas pieder TAI rindai, nevis tai, kuras "..." tika nospiests
   (dati VIENMĒR ir pareizi - tikai vizuāli neskaidrs, kurai rindai popup
   pieder). Izceļam TIEŠI to rindu, kuras popup ir atvērts. */
/* ⚠️ TĪŠI PELĒKS (nevis rozā/maroon) - rozā izskatījās pēc kļūdas/brīdinājuma
   stāvokļa, kaut arī tas TIKAI norāda, kurai rindai pieder atvērtais popup
   (neitrāla informācija, nevis problēma).
   ⚠️ ATTIECAS ARĪ UZ .row-actions (nevis tikai .row-publish) - TĀ PATI
   problēma: garš "..." izvēlnes popup vizuāli pārklāj nākamo(-ās) rindu(-as)
   apakšā (sk. 22c20851 komentāru), un admin var nospiest "Setup 3D model"
   domājot, ka tas pieder rindai ZEM tā (kur tas VIZUĀLI parādās), kaut arī
   saite PAREIZI ved uz TĀS rindas dizainu, kuras "..." tika nospiests - bez
   šī izcēluma nav VIZUĀLI skaidrs, kurai. */
.admin .add-product-container .designs-list .row:has(.row-publish.open),
.admin .add-product-container .designs-list .row:has(.row-actions.open){
    position:relative;
    z-index:11;
    background:#F0F2F4;
    box-shadow:0 0 0 1px #C3CBD5;
}
.admin .add-product-container .designs-list .row .row-publish-menu{
    display:none;
    position:absolute;
    top:calc(100% + 4px);
    right:0;
    z-index:10;
    min-width:240px;
    background:#fff;
    border:1px solid #E7EAEE;
    border-radius:8px;
    box-shadow:0 4px 16px rgba(21,25,30,0.12);
    padding:10px;
    flex-direction:column;
    gap:2px;
}
.admin .add-product-container .designs-list .row .row-publish.open .row-publish-menu{
    display:flex;
}
.admin .add-product-container .designs-list .row .row-publish-item{
    position:relative;
    display:flex;
    align-items:center;
    gap:8px;
    padding:6px 4px;
    font-size:13px;
    font-weight:600;
    color:#15191E;
    cursor:pointer;
}
.admin .add-product-container .designs-list .row .row-publish-item input[type="checkbox"]{
    /* ⚠️ Pati checkbox VAIRS NAV redzama - to aizstāj .row-publish-item-toggle
       (īsts, mazs ON/OFF slēdzis, sk. zemāk). Paliek DOM (nevis display:none),
       lai <label> - checkbox saistība turpina strādāt (klikšķis JEBKUR uz
       label, ieskaitot toggle, pārslēdz checkbox) un lasītāji/tastatūra to
       joprojām redz. */
    position:absolute;
    opacity:0;
    width:1px;
    height:1px;
}
.admin .add-product-container .designs-list .row .row-publish-item-label{
    flex:1;
}
/* ⚠️ Īsts, kompakts ON/OFF slēdzis (nevis teksta "pill") - lietotājs lūdza
   "pašas podziņas", lai izskatās un jūtas TIEŠI pieskaramas, ne tikai
   krāsains teksts. ON=zaļš, OFF=SARKANS (šis ir burtisks ieslēgts/izslēgts
   PĀRSLĒGS, nevis pasīvs statusa apraksts - tur sarkans būtu maldinošs
   brīdinājums, sk. 4b27aa01, bet ŠEIT tas ir parasta, saprotama slēdža
   konvencija). */
.admin .add-product-container .designs-list .row .row-publish-item-toggle{
    position:relative;
    flex:0 0 auto;
    width:30px;
    height:16px;
    border-radius:8px;
    background:#C0364A;
    transition:background 0.15s;
}
.admin .add-product-container .designs-list .row .row-publish-item-toggle::after{
    content:"";
    position:absolute;
    top:2px;
    left:2px;
    width:12px;
    height:12px;
    border-radius:50%;
    background:#fff;
    box-shadow:0 1px 2px rgba(0,0,0,0.3);
    transition:transform 0.15s;
}
.admin .add-product-container .designs-list .row .row-publish-field:checked ~ .row-publish-item-toggle{
    background:#1E7B34;
}
.admin .add-product-container .designs-list .row .row-publish-field:checked ~ .row-publish-item-toggle::after{
    transform:translateX(14px);
}
.admin .add-product-container .designs-list .row .row-publish-field:disabled ~ .row-publish-item-toggle{
    opacity:0.4;
}
.admin .add-product-container .designs-list .row .row-publish-item-label{
    flex:1;
}
.admin .add-product-container .designs-list .row .row-publish-item-state{
    flex:0 0 auto;
    font-size:11px;
    font-weight:700;
    text-transform:uppercase;
    letter-spacing:0.02em;
    padding:2px 8px;
    border-radius:10px;
    background:#F0F2F4;
    color:#6D7175;
}
.admin .add-product-container .designs-list .row .row-publish-item-state.is-on{
    background:#E3F1E7;
    color:#1E7B34;
}
.admin .add-product-container .designs-list .row .row-publish-item input[type="checkbox"]:disabled{
    cursor:not-allowed;
}
.admin .add-product-container .designs-list .row .row-publish-item:has(input:disabled){
    color:#B0B6BE;
    cursor:not-allowed;
}
.admin .add-product-container .designs-list .row .row-publish-hint{
    font-size:11px;
    color:#6D7175;
    padding:4px 4px 2px;
    line-height:16px;
}
.admin .add-product-container .designs-list .row .row-publish-hint-warning{
    color:var(--brand-accent, #9A2F58);
}

.admin .add-product-container .designs-list-toolbar{
    display: flex;
    flex-wrap: wrap;
    gap:10px;
    align-items: flex-end;
    padding:20px 0 0;
}
.admin .add-product-container .designs-list-toolbar select.ui-select{width:auto;min-width:160px;}
.admin .add-product-container .designs-list-toolbar .designs-search-wrap{
    position:relative;
    flex:0 0 320px;
    max-width:320px;
    margin-left:auto;
}
.admin .add-product-container .designs-list-toolbar .designs-search-wrap input{
    width:100%;
    box-sizing:border-box;
    padding-right:44px;
}
.admin .add-product-container .designs-list-toolbar .admin-date-filter{
    display:flex;
    flex-direction:column;
    gap:4px;
    font-size:12px;
    color:#15191E;
    font-weight:600;

}
.admin .add-product-container .designs-list-toolbar .admin-date-filter input{
    border: 1px solid #C3CBD5;
    border-radius:3px;
    padding:9px 10px;
    font-size:14px;
    color:#15191E;
}
.admin .add-product-container .designs-list .row .admin-order-files{
    display:flex;
    flex-direction:column;
    gap:4px;
}
.admin .add-product-container .designs-list .row .admin-order-file-empty{
    color:#9DA4AE;
}
.admin .add-product-container .orders-empty-state{
    padding:40px;
    text-align:center;
    color:#6D7175;
}

.admin .designs-list-toolbar .admin-date-filter{
    flex:0 0 190px;
}
.admin .designs-list-toolbar .admin-date-input{
    position:relative;
}
.admin .designs-list-toolbar .admin-date-input input{
    width:100%;
    box-sizing:border-box;
    padding-right:40px;
}
.admin .designs-list-toolbar .admin-date-input input::-webkit-calendar-picker-indicator{
    position:absolute;
    right:0;
    top:0;
    width:40px;
    height:100%;
    opacity:0;
    cursor:pointer;
}
.admin .designs-list-toolbar .admin-date-input svg{
    position:absolute;
    right:10px;
    top:50%;
    transform:translateY(-50%);
    pointer-events:none;
}
.admin .add-product-container .designs-list-toolbar .designs-search-submit{
    position:absolute;
    top:50%;
    right:6px;
    transform:translateY(-50%);
    display:flex;
    align-items:center;
    justify-content:center;
    width:32px;
    height:32px;
    padding:0;
    border:none;
    background:none;
    cursor:pointer;
    border-radius:6px;
}
.admin .add-product-container .designs-list-toolbar .designs-search-submit:hover{
    background:#F0F2F4;
}
.admin .add-product-container .designs-list-toolbar .designs-search-submit svg{
    display:block;
    width:20px;
    height:20px;
}

.add-product-container .dropzone-container {
    display: grid;
    grid-template-columns: auto auto auto auto;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    flex-wrap: wrap;
    margin: 0px -0px;
    gap: 30px;
    align-content: flex-start;
    position: relative;
    margin:40px 0;
}
.dropzone-container .dropzone-container-col{


}

.add-3d-model .model-uplaod-container{
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}
.add-3d-model .model-uplaod-container .dropzone-container{
    width:280px;
}

.sides_3dmodel{
    display: flex;
    justify-content: center;
    gap:80px;
    padding: 20px 0 80px 0;
    position:relative;
}
.sides_3dmodel .sides_3d_model_preview{
    display: flex;
    flex-direction: column;
}
.sides_3dmodel .sides_3d_model_preview .sides_3d_model_canvas_container{
    display: flex;
    align-items: center;
    justify-content: center;
}
.sides_3dmodel .sides_3d_model_preview .sides_3d_model_preview_btn{
    display: flex;
    flex-direction: row;
    gap:20px;
    justify-content: center;
}
.sides_3dmodel .sides_3d_model_preview .sides_3d_model_preview_btn .btn{
    padding: 4px 8px;
}
.sides_3dmodel .sides_3d_model_sides_list,{
    display: flex;
    flex-direction: column;

}
.sides_3dmodel .sides_3d_model_items{
    display: flex;
    flex-direction: row;
    gap:40px;
    padding:20px 0;
}
.sides_3dmodel .sides_3d_model_items .sides_3d_model_item{
    display: flex;
    flex-direction: column;
    align-items: center;
}
.dropzone .upload{
    /*position:relative;*/
}

.dropzone,
.dropzone-container-col.product-side .image-content{
    background: #FCFCFC;
    /* Makertech/Text */
    border: 1px solid var(--brand-accent, #9A2F58);
    box-sizing: border-box;
    border-radius: 3px;
    padding-top:100%;
    margin: 0 0 20px 0;
    position:relative;
    overflow:hidden;
}
.images-content-uploaded.uploaded-product-images{
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:100%;
}
.del-image{
    position:absolute;
    right: 10px;
    top:10px;
    cursor: pointer;
}
/* Figma ("print area 2") kartītē dzēšanas krustiņa vispār nav - atstājam to
   (citādi pusi no šī skata nevar izdzēst), bet neitrāli pelēku - tādā pašā
   krāsā kā attēla rāmis - lai tas nepievelk uzmanību vairāk par pašu attēlu.
   Maroon paliek tikai hover stāvoklim, kad darbība tiešām tiek mērķēta. */
.del-image svg path{
    fill:#C3CBD5;
}
.del-image:hover svg path{
    fill:var(--brand-accent, #9A2F58);
}
.images-content-uploaded.uploaded-product-images img{
    object-fit: cover;
    width:100%;
    height:100%;
}
.dropzone-container-col.product-side .product-size-name{
    font-family: Inter;
    font-size: 12px;
    font-weight: 600;
    line-height: 16px;
    letter-spacing: 0.025em;
    text-align: left;
}
.dropzone-container-col.product-side .product-size-name input,
.add-product-top h1 input{
    border: 1px solid #C3CBD5;
    width:100%;
    box-sizing:border-box;
    padding: 10px 16px;
    color:#15191E;
}
.dropzone-container-col.product-side .product-size-btn{
    display: flex;
    justify-content: space-between
}
.dropzone-container-col.product-side .product-size-btn .btn{
    background: #F0F2F4;
    font-size: 16px;
    font-weight: 600;
    line-height: 20px;
    letter-spacing: 0.01em;
    color:#15191E;
    padding: 10px 5px;
}
.product-side-tmp{display: none;}
.dropzone.has-image{padding:0;}
.dropzone.has-image img{display: block; width:100%;height:100%;}

.dropzone.has-image .image-content{position:absolute;padding:0;border-radius:6px;overflow:hidden;display: flex;height: 100%;}


.dropzone{display: flex;position:relative;  flex-direction: column}
.dropzone .upload{
    position:absolute;
    left:0;top:0;right:0;bottom:0;
    z-index:1;
    padding:20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    font-size: 20px;
    line-height: 30px;
    cursor:pointer;
}
.dropzone .upload .dz-message span{
    display: flex;align-items: center;
    justify-content: center;
    flex-direction: row;
    position:relative;
    padding:10px;
    border-radius:8px;
    overflow:hidden;
    color: var(--brand-accent, #9A2F58);;
    font-size: 16px;
    line-height: 18px;
    text-align: center;
}

.dropzone .upload .dz-message span.tip-allowed-images{font-size:12px;color:#000;font-weight: 600;}
.dropzone .upload .dz-message span .bg{
    position:absolute;
    background:#fff;
    left:0;top:0;right:0;bottom:0;
    opacity:0.4;
    display: none;
}



.page-portfolio .main-content.worksheet{background: #fefefe;}
.main-content-body{display:flex;height: calc(100% - 80px);}
.main-content-body aside{flex: 0 0 380px;background: #FAFBFC;padding-bottom:80px;}
.main-content-body .main-content-sections{flex: 1 1;}
body.shop .main-content-body .main-content-sections{/*max-width:980px;*/}
.main-content-body .main-content-sections-content{width:100%;max-width:980px;margin: 0 auto;}

.storage-view .main-content-body{flex-direction: column;max-width: 640px;}
.storage-view .frontpage-worksheets{padding: 0;}

.storage-view .frontpage-worksheets .btn-add-worksheet{bottom:auto;left:auto;right:0;transform: none;top: -8px;}
.storage-view .storage-worskheets.storage-worskheets-folders{display: none;}
.main-classroom-summary{padding: 20px 0 0 0;position:relative;}

.journal-students-list{max-width:640px;margin:0 auto;}
.journal-students-list .select-wrap{padding:0 0 20px 0;/*display:flex; flex-shrink: 1;*/}
.journal-students-list .journal-students-list-item{display:flex;flex-direction: row;  align-items: center;margin:10px 0; background: #FFFFFF;box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.1);border-radius: 10px;}
.journal-students-list .journal-students-list-item div{display:flex;padding:12px 14px;}
.journal-students-list .journal-students-list-item .journal-students-list-item-name{ flex: 1 1;color:#1E2E57;padding-left:0;}
.journal-students-list .journal-students-list-item .journal-students-list-item-delete{display: none;flex: 0 0 16px;box-sizing:border-box; justify-content: center; }


.container-custom-radio {
  display: block;
  position: relative;
  padding-left:16px;
  margin-bottom: 12px;
  cursor: pointer;
  font-size: 22px;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* Hide the browser's default radio button */
.container-custom-radio input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

/* Create a custom radio button */
.container-custom-radio .checkmark {
  position: absolute;
  top: 0;
  left: 0;
  height: 16px;
  width: 16px;
  background-color: #40BFFF;
  border-radius: 50%;
}

/* On mouse-over, add a grey background color */
.container-custom-radio:hover input ~ .checkmark {
  background-color: #40BFFF;
}

/* When the radio button is checked, add a blue background */
.container-custom-radio input:checked ~ .checkmark {
  background-color: #0B5FFF;
}

/* Create the indicator (the dot/circle - hidden when not checked) */
.checkmark:after {
  content: "";
  position: absolute;
}

/* Show the indicator (dot/circle) when checked */
.container-custom-radio input:checked ~ .checkmark:after {
  display: block;
}

/* Style the indicator (dot/circle) */
.container-custom-radio .checkmark:after {
 	top: 4px;
	left: 4px;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: white;
}
.container-custom-radio input:checked ~ .checkmark:after{background-color: #0B5FFF;}


/* Customize the label (the container) */
.container-custom-checkbox {
  display: block;
  position: relative;
  padding-left: 34px;
  margin-bottom: 12px;
  cursor: pointer;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  text-align:left;
  height: 16px;
}

/* Hide the browser's default checkbox */
.container-custom-checkbox input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

/* Create a custom checkbox */
.container-custom-checkbox .checkmark {
  position: absolute;
  top: 1px;
  left: 4px;
  height: 16px;
  width: 16px;
  background: #FFFFFF;
  /* Action Primary / Disabled */
  border: 1px solid rgba(11, 95, 255, 0.5);
  box-sizing: border-box;
  border-radius: 2px;
}

/* On mouse-over, add a grey background color */
.container-custom-checkbox:hover input ~ .checkmark {
  background-color: #FFFFFF;
}


/* When the checkbox is checked, add a blue background */
.container-custom-checkbox input:checked ~ .checkmark {
  background-color: #40BFFF;
  border: 1px solid #40BFFF;
}

/* Create the checkmark/indicator (hidden when not checked) */
.container-custom-checkbox .checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

/* Show the checkmark when checked */
.container-custom-checkbox input:checked ~ .checkmark:after {
  display: block;
}

/* Style the checkmark/indicator */
.container-custom-checkbox .checkmark:after {
  left: 4px;
  top: 0px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 1px 1px 0;
  -webkit-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  transform: rotate(45deg);
}

.main-content-body .worksheet-storage{display:flex;flex-direction:row; height:200px; max-width:640px; align-items: center; align-content: center;color: #22215B;}
.main-content-body .worksheet-storage .storage-info{display:flex;flex-direction: column; justify-content: flex-start;padding:0 50px 0 0; }
.main-content-body .worksheet-storage .storage-info .free-storage{
    font-weight: 900;
    font-size: 30px;
    line-height: 116%;
    padding: 8px 0;
}
.main-content-body .worksheet-storage .storage-info-descr{padding: 0 0 0 50px;display:flex;}
.main-content-body .worksheet-storage .storage-section-color{width:10px;height:10px;margin-top:4px;border-radius:10px;}
.main-content-body .worksheet-storage .storage-section-title{padding: 0 0 0 10px;color: rgba(34, 33, 91, 0.6);}
.main-content-body .worksheet-storage .storage-section-title span{display:block;color:#22215B;padding: 0 0 8px 0;}


.main-content-body .worksheet-storage .storage-chart{position:relative;width:160px;height:160px;overflow:hidden;}
.main-content-body .worksheet-storage .storage-chart #storage-chart-container{width:160px;height:160px;}

.storage-worskheets{max-width:640px;margin: 0 0 13px 0;width:100%;}

.storage-worskheets.storage-folders{border-bottom: 1px solid rgba(30, 46, 87, 0.4);padding: 0 0 22px 0;}

.storage-worskheets .worskheets-list-items > * {
  margin: 18px 0 0 18px;
}
.storage-worskheets .worskheets-list-items{display: inline-flex;
  flex-wrap: wrap;
  margin: 0px 0 0 -18px;
  width: calc(100% + 18px);
}
.storage-worskheets .worskheets-list-items .storage-worskheets-item{width: calc(16.66% - 18px);text-align:center;font-size: 11px;
  line-height: 17px;
  text-align: center;
  color: #000000;
}
.storage-worskheets .worskheets-list-items .storage-worskheets-item a{display:block;}
.storage-worskheets.storage-folders .worskheets-list-items .storage-worskheets-item a{color: #1E2E57;font-weight: bold;display:block;}
.storage-worskheets .worskheets-list-items .storage-worskheets-item a img{width:100%;display:block;}

.new-folder input{background: #F4F6F9;padding: 15px 16px;border-radius: 8px;color: #1E2E57;width:100%;box-sizing:border-box;}
.new-folder h3{color: #1E2E57;padding: 25px 0 0 0;}
.new-folder .new-folder-btn{ display: flex;justify-content: space-around;padding: 0 0 28px 0;}
.new-folder .new-folder-btn .btn{padding: 8px 12px;}
.new-folder .new-folder-btn .btn.new-folder-cancel{background: none;border: 2px solid #40BFFF;color: #40BFFF;padding: 8px 12px;}
.new-folder .folder-icons{display: flex;flex-wrap: wrap;align-items: center;justify-content: center;padding: 10px 0 40px 0;}
.new-folder .folder-icons .new-folder-icon{cursor: pointer;padding: 2px;width:25%;box-sizing:border-box;}
.new-folder .folder-icons.dragable-icons .new-folder-icon{padding:10px;width:20%;}
.new-folder .folder-icons .new-folder-icon svg{width:100%;height:auto;}
.new-folder .folder-icons .new-folder-icon input{display:none;}
.new-folder .folder-icons .new-folder-icon label{display: block;cursor: pointer;}
.empty-list{
  font-family: var(--brand-font, 'Roboto');
  font-style: normal;
  font-weight: normal;
  font-size: 16px;
  line-height: 24px;
  text-align: center;
  color: rgba(30, 46, 87, 0.4);
  display: flex;
  height: 100%;
  justify-content: center;
  align-content: center;
  align-items: center;
  flex-direction: column;
  width: 100%;
}
.worksheets-selected-subject{
  background: #51E69C;
  display:flex;
  align-items:center;
  align-content: center;
  padding: 18px 0;
}
.worksheets-selected-subject a{display:block;margin: 0 36px 0 20px;}

.shop-heading{
  background: #51E69C;
  border-radius: 23px;
  height: 176px;
  margin: 45px 50px -96px 50px;
}
.shop-heading h1{
  font-size: 40px;
  line-height: 36px;
  /* or 90% */
  padding: 20px 20px;
  display: flex;
  align-items: center;

  /* White */

  color: #FFFFFF;
}
.shop-subjects{margin: 0 70px;
background: #5243AA;
border-radius: 20px;
padding: 30px;

}
.shop-subjects .shop-subject-items > * {
  margin: 18px 0 0 18px;
}
.shop-subjects .shop-subject-items{display: inline-flex;
  flex-wrap: wrap;
  margin: 0px 0 0 -9px;
  width: calc(100% + 18px);

}
.shop-subjects .shop-subject-items.thematic-plan{flex-direction: column;}
.shop-subjects .shop-subject-items .shop-subject-item{width: calc(25% - 18px);background: #FFFFFF;
  border: 1px solid #FFFFFF;
  box-sizing: border-box;
  /* Fluffy / Elevation 1 */

  box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.05);
  border-radius: 8px;
  display:flex;
  align-items: center;
}
.shop-subjects .shop-subject-items .shop-subject-item.no-worksheets{opacity: 0.6;}
.shop-subjects .shop-subject-items .shop-subject-item a{
  display:flex;
  align-items: center;
  width:100%;
}
.shop-subjects .shop-subject-items .shop-subject-item-icon{padding:14px;display:block;}
.shop-subjects .shop-subject-items .shop-subject-item-icon svg{display: block;}

.shop-subjects .shop-subject-items .custom-select{
    width:100%;
    max-width:320px;
    margin:40px auto 0 auto;
}

.lesson-item{display: flex;color:#fff;align-items: center;}
.lesson-item .lesson_number{background: #51E69C;border-radius:50%;width: 32px;height:32px;flex: 1 1 36px;display: flex;color:#fff;align-items: center;justify-content: center;}
.lesson-item .container-custom-checkbox{margin-bottom:0;}

.lesson-item .lesson-info{flex:1 1 100%;}
.lesson-item .lesson-info .ql-toolbar.ql-snow{background:#fff;}
.lesson-item .lesson-info textarea{width:100%;color:#000;height:80px;padding:10px;}

.lesson-info .ql-editor{background:#fff;color:#000;font-size:16px;}

.thematic-plan .btn{padding-left:20px;padding-right:20px;float:right;}

.thematic-plan-container{background: #6554C0;}

.thematic-plan-msg,
.thematic-plan-info{color:#fff;}
.thematic-plan-msg h3,
.thematic-plan-info h3,
.thematic-plan h2{color:#fff;font-size:18px;}

.thematic-plan-info h2{color:#fff;font-size:18px;}

.thematic-plan-msg .formatedtext ul li:before {
    content: "";
    position:absolute;
    left: 0px;
    top: 12px;
    padding:0px;
    background: #fff;
    display:inline-block;
    width:6px;height:6px;border-radius:6px;
}
body.shop .header-tools-nav{align-items: center;}

.btn-add-worksheet{position:fixed;right:20px;bottom:40px;}
.mobile-view .btn-add-worksheet{display:block;}

.add-worksheet-to-shop .add-workseet-steps-container{padding: 0 22px;}
.add-worksheet-to-shop.page-worksheets .add-workseet-steps-container{padding: 0px;}
body.worksheet-details.add-worksheet-to-shop .add-workseet-steps-container{padding: 0;}
body.worksheet-details.add-worksheet-to-shop .custom-dialog.ui-dialog .ui-dialog-content{padding: 0;}
body.worksheet-details.add-worksheet-to-shop .custom-dialog.ui-dialog{padding: 0;border-radius: 20px;overflow:hidden;}
body.worksheet-details.add-worksheet-to-shop .custom-dialog.ui-dialog > .ui-widget-header{position:absolute;left:0;top:4px;right:0;padding:0;z-index:9999999;}
body.worksheet-details.add-worksheet-to-shop .custom-dialog.ui-widget-content,
body.worksheet-details.add-worksheet-to-shop .modal-content{background: none;}

.add-worksheet-to-shop.mobile-view .header-wrap{display:none;}
.add-worksheet-to-shop.mobile-view .btn-back{display:none;}

.add-workseet-steps .btn-back-arrow{display:none;position:absolute;top:19px;left:19px;}

.add-worksheet-to-shop.mobile-view .btn-back-arrow{display:block;}

.add-workseet-steps{display:flex;justify-content: center; align-items: center;}

body.publish .add-workseet-steps{
background: #ffffff url(/images/svg/worksheet/worksheet-details-bg.jpg) no-repeat center;
background-size: cover;
border-radius: 24px 24px 0 0;
padding: 0px 80px;
padding-bottom: 29%;
position:relative;
}

.btn-add-to-cart{display: flex; justify-content: center;padding: 40px 0;}
body.cart-details .btn-add-to-cart{display: none;}
.btn-add-to-cart button{
background: #40BFFF;
border-radius: 8px;
width:100%;max-width:319px;
}

.add-worksheet-to-shop.mobile-view .add-workseet-steps-container{padding: 140px 0 0 0;;}
.add-worksheet-to-shop.mobile-view.publish .add-workseet-steps-container{padding: 130px 0 0 0;;}
.add-worksheet-to-shop.mobile-view .add-workseet-steps{z-index:1;position:absolute;left:0px;right:0px;top:0;background: #5243AA;border-radius: 0px 0px 20px 20px;height:85px; padding-top:40px; }

.add-worksheet-to-shop .add-workseet-steps .steps-title{font-family: var(--brand-font, 'Roboto');
  font-style: normal;
  font-weight: 500;
  font-size: 16px;
  line-height: 24px;
  color: #FFFFFF;
  padding: 0 48px;
  position:absolute;
  left:40%;
  top:50%;
  transform: translateY(-50%);
}
.add-worksheet-to-shop .add-workseet-steps .steps-title .subject{
  font-family: var(--brand-font, 'Roboto');
  font-style: normal;
  font-weight: 500;
  font-size: 13px;
  line-height: 20px;
  color: #F2F2F2;
  opacity: 0.6;
}
.add-worksheet-to-shop .add-workseet-steps-info{
  background: #F4F5F7;
  border-radius: 0px 0px 20px 20px;
  display:flex;
  align-content: center;
  box-sizing:border-box;
  padding:10px 10px 14px 10px;
  height:100px;
  z-index:0;
  align-items: flex-end; align-content: flex-end;
  margin: 0 22px;
}
.add-worksheet-to-shop.mobile-view .add-workseet-steps-info{margin:0;}

.add-worksheet-to-shop .add-workseet-steps-info div{flex: 0 0 50%;text-align:center;}
.add-worksheet-to-shop .add-workseet-steps-info div.price{
  font-weight: 500;
  font-size: 29px;
  line-height: 32px;
  color: #6554C0;
}
.add-worksheet-to-shop .task-count-time{
  display:flex;
  align-content: center;
  box-sizing:border-box;
  margin: 30px 0 0 ;
  padding:20px 10px 20px 10px;
  border-top: 1px solid #F4F6F9;
}
.add-worksheet-to-shop .task-count-time div{flex: 1 1 50%;text-align:center;font-size:13px;line-height: 20px; color: #4F4F4F; align-content: center;align-items: center;}
.add-worksheet-to-shop .task-count-time div span{
  font-weight: 500;
  font-size: 20px;
  line-height: 28px;
  /* identical to box height, or 140% */

  text-align: center;
  display:block;
  color: #5243AA;
}


.add-worksheet-to-shop .task-skills{display:flex; align-items: center;padding:9px 0;}
.add-worksheet-to-shop .task-skills-items{display:flex;flex: 1 1; justify-content: flex-end;}
.add-worksheet-to-shop .task-skills-items .task-skill-item{width:30px;height:30px;}
.add-worksheet-to-shop .task-skills-items .task-skill-item svg{width:30px;height:30px;}

.add-worksheet-to-shop .task-skills-items .task-skill-item.level{width:27px;height:27;padding-left:4px;}
.add-worksheet-to-shop .task-skills-items .task-skill-item.level svg{width:27px;height:27px;}


.add-worksheet-to-shop .add-workseet-steps-info div.author{height:29px;display:flex; align-items: center;padding: 0 0 0 40px; background: url(/images/svg/shop/user.svg) no-repeat left center;
  font-family: Source Sans Pro;
  font-style: normal;
  font-weight: 600;
  font-size: 14px;
  line-height: 20px;
  color: #1E2E57;
}
.add-workseet-steps .step{padding: 0 10px;z-index:1;position:relative;}
.add-workseet-steps .step:after{content:"";z-index:-1;position:absolute;bottom:50%;left:5px;right:5px;height:2px;background:#fff;}
.add-workseet-steps .step.chose:after{left:20px;}
.add-workseet-steps .step.publish:after{right:20px;}
.add-workseet-steps .step a, .add-workseet-steps .step svg{display:block;}

.add-workseet-steps-container .step-content{max-width:640px;margin: 0 auto;padding: 0 22px;}
.add-workseet-steps-container .step-content-container{display:flex; justify-content: center; text-align: center; flex-direction: column;
  display: flex;
  color: #1E2E57;
}
.add-workseet-steps-container .step-content-container .btn-container{width:100%;margin: 20px auto;display: flex;align-content: space-between;justify-content: space-between; flex-direction: row-reverse;}

.add-worksheet-to-shop.mobile-view .add-workseet-steps-container .step-content-container .btn-container{flex-direction: column;align-items: center;}
.add-workseet-steps-container .step-content-container .btn-container button.btn{
  background: #5E2EBA;
  border-radius: 4px;
  flex: none;
  order: 0;
  flex-grow: 0;
  color: #FFFFFF;
  padding: 14px 21px;
}
.add-workseet-steps-container .step-content-container .btn-container .btn-transparent{
  font-weight: 600;
  font-size: 16px;
  line-height: 140%;
  display: flex;
  align-items: center;
  color: #394A64;
  padding: 14px 21px;
  border: 1px solid #DEE5EF;
  box-sizing: border-box;
  border-radius: 4px;
}
.add-workseet-steps-container .step-content-container .step-descr{padding:20px 0;}
.add-workseet-steps-container .preview{display: flex;justify-content: center; gap:12px;}
.add-workseet-steps-container .preview img{width:80px;}
.add-workseet-steps-container .step-content-container .step-chose-worksheet{margin: 0 auto;padding: 22px 0;text-align:center;width:100%;}
.add-workseet-steps-container .step-content-container .step-chose-worksheet.custom-select{max-width:320px;text-align:left;}
.add-workseet-steps-container .step-content-container .step-chose-worksheet textarea{
  width:100%;
  max-width: 320px;
  background: #F4F6F9;
  border-radius: 8px;
  resize: vertical;
  padding: 12px 16px;
  font-size: 16px;
  line-height: 24px;
  box-sizing: border-box;
}
.add-workseet-steps-container .step-content-container .step-chose-worksheet.price input{
  border: 0.5px solid #7B8794;
  box-sizing: border-box;
  border-radius: 8px;
  padding: 12px 16px;
  font-family: Noto Sans;
  font-style: normal;
  font-weight: 600;
  font-size: 16px;
  line-height: 150%;

}


.add-workseet-steps-container .step-content-container.is-free .step-chose-worksheet.btn-free-worskheet a .worksheet-free-fill {fill:#51E69C;fill-opacity:1;}
.add-workseet-steps-container .step-content-container.is-free .step-chose-worksheet.btn-free-worskheet a path {fill:#fff;}



.add-workseet-steps-container .step-content-container.is-free .step-chose-worksheet.price{display:none}
.add-workseet-steps-container .step-content-container .step-chose-worksheet.price input::placeholder { /* Chrome, Firefox, Opera, Safari 10.1+ */
  color: red;
  color: rgba(30, 46, 87, 0.2); /* Firefox */
}
.add-workseet-steps-container .step-content-container .step-chose-worksheet.price input:-ms-input-placeholder { /* Internet Explorer 10-11 */
  color: rgba(30, 46, 87, 0.2);
}
.add-workseet-steps-container .step-content-container .step-chose-worksheet.price input::-ms-input-placeholder { /* Microsoft Edge */
  color: rgba(30, 46, 87, 0.2);
}
.worksheet-from-storage .worksheet-from-storage-header{
  padding: 0 16px;
  box-sizing: border-box;
  margin: 0 auto;
  display: flex;
  position:relative;
  z-index:1;
}

.worksheet-from-storage .top-header{
  background: #6554C0;
  border-radius: 0px 0px 20px 20px;
  width:100%;
  height:230px;
  display:flex;
  flex-direction: column;
  align-content: center;
  padding: 0 48px;
  margin-bottom:80px;
  color:#fff;
  align-items: flex-start;
  justify-content: center;
  text-align: left;
  position:relative;
  z-index:1;
}
.worksheet-from-storage .top-header span{
  font-weight: 500;
  font-size: 13px;
  line-height: 20px;
  color: rgb(242,242,242,0.6);
  position:relative;
}

.worksheet-from-storage .sub-header{
  background: #F4F5F7;
  border-radius: 0px 0px 20px 20px;
  display:flex;
  align-content: center;
  box-sizing:border-box;
  padding:55px 10px 10px 10px;
  height:120px;
  position:absolute;
  bottom:0px;
  left:16px;
  right:16px;

}
.worksheet-from-storage .sub-header div{flex: 1 1 50%;text-align:center;font-size:13px;line-height: 20px;  align-content: center;align-items: center;}
.worksheet-from-storage .sub-header div span{
  font-weight: 500;
  font-size: 20px;
  line-height: 28px;
  /* identical to box height, or 140% */

  text-align: center;
  display:block;
  color: #5243AA;
}
.worksheet-from-storage section.main{
  font-size: 13px;
  line-height: 20px;
  padding:20px 40px;
  color: #1E2E57;
}
.worksheet-from-storage section.footer{
  margin:0 auto;
  font-size: 13px;
  line-height: 20px;
  padding:20px 20px 20px 20px;
  color: #1E2E57;
}
.worksheet-from-storage section.footer.give-task-details .custom-select{
  padding:0 0 20px 0;
}
#give-task-students-list h3{padding:0 0 20px 0;}
#give-task-students-list .journal-students{
  display: flex;
  flex-wrap: wrap;
}
#give-task-students-list .journal-students label{
  width:25%;
  box-sizing:border-box;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}
.worksheet-from-storage section.footer input[type=text]{
  background: #7DD0F4;
  border-radius: 16.3043px 0px;
  color:#fff;
  padding: 10px 18px;
  box-sizing:border-box;
}

.worksheet-from-storage section.footer .dedline{display:flex;flex-direction: column; align-items: center; justify-content: center;padding:0 0 20px 0; }
.worksheet-from-storage section.footer .dedline input{margin-left:4px;width:170px;text-align:center;font-size:16px;}

.worksheet-from-storage .btn-wrap{
    max-width:180px;margin:0 auto;
}
.tempus-dominus-widget.light .date-container-days .dow {
    font-size: 12px !important;
}

.worskheets-large-list{width:100%;padding: 50px 20px;box-sizing:border-box;margin: 0 auto; }

.worskheets-large-list .tabs-nav {
    list-style: none;
    margin: 0 0 20px 0;
    padding: 14px 0 0px 0;
    display:flex;
    border-bottom: 1px solid #DFE1E6;
}
.worskheets-large-list .tabs-nav li {
    display:flex; justify-content: center; align-content: center; align-items: center;
    padding: 0px;
    flex-grow: 1;
    flex-basis: 0;
}
.worskheets-large-list .tabs-nav .tab-active{

}
.worskheets-large-list .tabs-nav .tab-active a {
    cursor: default;
    position:relative;
}
.worskheets-large-list .tabs-nav .tab-active a:after{
    content:"";
    width:80%;
    height:3px;
    position:absolute;bottom:-2px;
    background: #1E2E57;
    border-radius: 2px;

}
.worskheets-large-list .tabs-nav a {
    font-family: var(--brand-font, 'Roboto');
    font-style: normal;
    font-weight: 500;
    font-size: 16px;
    line-height: 24px;
    color: #1E2E57;
    display: flex;
    padding:8px 0;
    width:100%;
    justify-content: center; align-content: center; align-items: center;
}
.worskheets-large-list .tabs-nav a:hover{ cursor: pointer;}


.worskheets-large-list .tabs-stage {
  clear: both;
  padding: 0px 0;
  box-sizing:border-box;
  position: relative;
  height:calc(100% - 78px);
  overflow-y: auto;
}
.worskheets-large-list .tabs-stage > div{}
/*.left-navigation .tabs-stage .design-objects-items{ position: relative;overflow-y: auto;}*/
.worskheets-large-list .tabs-stage ul{padding:10px 0 10px 40px;}
.worskheets-large-list .tabs-stage ul li{list-style-type: circle; }
.worskheets-large-list .tabs-stage h2{
  font-family: var(--brand-font, 'Roboto');
  font-style: normal;
  font-weight: bold;
  font-size: 16px;
  line-height: 24px;
  color: #1E2E57;
  padding: 12px 22px;
}



.worskheets-large-list h3:last-of-type {padding-top:30px; }
.worskheets-large-list-content > * {
  margin: 20px 0 0px 20px;
}
.worskheets-large-list-content{
  display: inline-flex;
  flex-wrap: wrap;
  margin: 0px 0 20px -20px;
  /*margin: 0px 20px 20px 0px;*/
  width: calc(100% + 0px);
}
.shop .worskheets-large-list-content{margin-left:0;}
.worskheets-large-list-item{
  background: #FFFFFF;
  box-shadow: 0px 0px 2px rgba(23, 43, 77, 0.04), 0px 3px 2px rgba(23, 43, 77, 0.08);
  border-radius: 8px;
  width: calc(50% - 20px);
  display:flex;
  overflow: hidden;
}
body.shop .worskheets-large-list-item{width: calc(33.33% - 20px);}
.worskheets-large-list-item-details{padding:16px;display:flex; flex-direction: column; flex-grow: 1;position:relative; }

.worskheets-large-list-item-details .delete-worksheet-from-shop{position:absolute;right:8px;top:8px;}

.worskheets-large-list-item-details h2 a {
    font-family: var(--brand-font, 'Roboto');
    font-style: normal;
    font-weight: normal;
    font-size: 16px;
    line-height: 24px;
    height:48px;width:100%;
    color: #1E2E57;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.worskheets-large-list-item-topic{
    font-family: Source Sans Pro;
    font-style: normal;
    font-weight: 300;
    font-size: 13px;
    line-height: 20px;
    color: #1E2E57;
    line-height: 24px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    padding:5px 0;
}
.worskheets-large-list-item-subject{
    font-style: normal;
    font-weight: 600;
    font-size: 13px;
    line-height: 20px;
    color: rgba(30, 46, 87, 0.7);
    padding:10px 0;
}
.worskheets-price{
    font-weight: 500;
    font-size: 13px;
    line-height: 20px;
    /* identical to box height, or 154% */

    text-align: right;

    /* Primary / Primary 70% */

    color: rgba(30, 46, 87, 0.7);
}
.worskheets-large-list-item-btn{
    font-family: Source Sans Pro;
    font-style: normal;
    font-weight: 600;
    font-size: 13px;
    line-height: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 5px 11px;
    background: #FF8F73;
    border-radius: 10px 0px;
    color:#fff;
    position:absolute;bottom:10px;right:10px;
}
.worskheets-large-list-item-btn a{color:#fff;}
.worskheets-large-list-item-btn a:hover{color:#000;}
.worskheets-large-list-item-image img{display:block;}

.task-active .worskheets-large-list-item-btn{
    background:#56D1A8;
}

.mobile-view .worskheets-large-list.in-profile {padding: 20px 20px 0 20px;margin:0;}
.worskheets-large-list.in-profile .worskheets-large-list-item-details{padding: 11px;}
.worskheets-large-list.in-profile .worskheets-large-list-item-details h2 a{
     height:24px;
     color: #1E2E57;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}
.worskheets-large-list.in-profile .worskheets-rating{display:flex;padding:8px 0 4px 0;}
.worskheets-large-list.in-profile .worskheets-rating div{
  background: rgba(30, 46, 87, 0.1);
  border-radius: 5px 0px;
  width:13px;height:13px;
  margin-right:7px;
}
.worskheets-large-list.in-profile .worskheets-large-list-item-subject{padding:0px 0;display:flex;}
.worskheets-large-list.in-profile .worskheets-large-list-item-subject .price{flex: 1 1; text-align:right;font-weight: 500;
  font-size: 13px;
  line-height: 20px;
  color: rgba(30, 46, 87, 0.7);
}
.worskheets-large-list.in-profile .worskheets-large-list-item-subject .price .free{color:#51E69C;}
.worskheets-large-list.in-profile .in-review .worskheets-large-list-item-subject .price,
.worskheets-large-list.in-profile .in-review .worskheets-large-list-item-subject .price .free{color: #EBECF0;}



/* ⚠️ Augstums bija 100px, kas ap 32px ikonām atstāja 34px tukšuma augšā un
   apakšā - Figma tur ir tikai neliela atstarpe. 52px = 32px ikona + 10px
   virs un zem (tieši tas pats 10px, kas jau ir .footer-pages-tools padding).
   Atbrīvotie 48px aiziet canvas laukumam.
   ⚠️ Šim skaitlim JĀSAKRĪT ar bottom: nobīdi trijās vietās, kas "stāv uz"
   šīs joslas - .worksheet-content (css ~204), .navigation-worksheet-tools
   (~913) un .navigation-worksheet-properties (~999). Ja te maina augstumu,
   jāmaina arī tur, citādi zem joslas paliek sprauga vai tā pārklāj canvas. */
.footer-worksheet{height:52px;width:100%;background: rgba(255, 255, 255, 1);display:flex; align-content: center ; align-items: center;position:fixed;bottom:0;z-index:2;}
.footer-pages-tools{flex: 0 0 140px;padding:10px 20px 10px 0px;box-sizing:border-box; justify-content: center; display: flex;gap:20px;}
.footer-pages-tools-block{float:right;display:flex;background: #1E2E57;border-radius: 10px;box-sizing:border-box; justify-content: center;padding:0 6px;}
.footer-pages-tools-block a{width:52px;height:50px;margin:12px 6px;padding:12px;box-sizing:border-box;background: #6D7F9F;border-radius: 4px;}
.footer-pages-tools-block a.add-page{background: #51E69C;}
.footer-pages-tools-block svg{width:100%;height:100%;}

/* ⚠️ Inline SVG nes līdzi teksta bāzes līnijas atstarpi zem sevis, tāpēc
   ikonas centrējās par ~2px par augstu (nomērīts: 8px virs, 12px zem).
   Pie 100px joslas to nemanīja, pie 52px tas jau redzams. */
.footer-worksheet .footer-pages-navigation > div > svg,
.footer-worksheet .footer-pages-tools > div > svg,
.footer-worksheet .footer-pages-tools > a > svg{display:block;}

.footer-pages-navigation{display:flex;flex: 1 1 100%;justify-content: flex-start;gap:20px;;align-items: center;flex-wrap: wrap;padding-left:20px;}
.footer-pages-navigation-pages{position:relative;flex: 1 0;background: #1E2E57;border-radius: 10px;height:74px;padding: 0 6px; align-items: center;display:flex; overflow-x: hidden; width: calc(100% - 132px);}
.footer-pages-navigation-pages-wrap{position:relative;height:100%;width:100%;overflow:hidden; }
.footer-pages-navigation-pages .footer-pages-navigation-pages-content{position:absolute;left:0px;top:0;display:flex; flex : 1 1 100%;height:100%; align-items:center;overflow-x: hidden;}
.footer-pages-navigation-pages .footer-pages-navigation-pages-content .footer-page-item{height: calc(100% - 22px);box-sizing:border-box;margin: 0px 6px;width:40px;cursor:pointer;background: #FFFFFF;border:1px solid #fff; justify-content: center;align-items:center;display:flex;font-size:14px;color:#CCCCCC;}
.footer-pages-navigation-pages .footer-pages-navigation-pages-content .footer-page-item:hover{background: #EEEEEE;border:1px solid #51E69C;}
.footer-pages-navigation-pages .footer-pages-navigation-pages-content .footer-page-item.selected{background: #6D7F9F;border:1px solid #51E69C;}
.footer-pages-navigation-arrows{flex: 0 0 66px;text-align:center; align-content: center;color:#fff;cursor: pointer;}

.footer-info{
    display: flex;
    background: #789DED;
    flex-direction: column;
    padding: 20px 0;
}
.footer-info .footer-info-text{
    font-size:12px;
    padding:20px;
    color:#fff;
    max-width:800px;
    display: flex;
    justify-content: center;
    text-align:center;
    margin: 0 auto;
}
.footer-info  .footer-info-images{
    display: flex;
    align-items:center;
    justify-content: center;
    justify-content: space-evenly;
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
}
.footer-info .footer-info-images img{max-width:120px;margin: 8px 5px;}

.footer-wrap{display:none;position:fixed;bottom:0;left:0;z-index:2;width:100%;background: #6554C0;}
.footer-bottom{max-width:640px;margin: 0 auto;padding: 16px 0;display:flex; justify-content: center; align-items: center; align-content: center; }
.footer-bottom ul{display:flex;width:100%;}
.footer-bottom ul li{flex-grow: 1;flex-basis: 0; justify-content: center;  }
.footer-bottom ul li a{
  font-family: 'Noto Sans';
  font-style: normal;
  font-weight: bold;
  font-size: 11px;
  line-height: 100%;
  text-align: center;
  letter-spacing: 0.2px;
  color: rgba(30, 46, 87, 0.4);;
  display:block;
  align-content: flex-end; align-items: flex-end;
}
.footer-bottom ul li a svg path{fill: rgba(30, 46, 87);}
.footer-bottom ul li a div{display:block;}
.footer-bottom ul li a div:after{content:"";float:none;clear:both;}

.footer-bottom ul li a:hover{color:#FFFFFF;}
.footer-bottom ul li a:hover svg path{fill:#FFFFFF;fill-opacity:1;}
.footer-bottom ul ul{display:none;}
.copyright{text-align:center;}


.design-wrap{width:100%;height:100%;padding-top:80px !important;position:relative;box-sizing:border-box;}

.design-wrap-preview{display: flex;height:100%;flex-direction: column;}

/* Review (preview) skats: rīks iframe iekšienē ir "full-bleed" - .design-side
   beidzas TIEŠI tur, kur sākas baltais rīku panelis. Tāpēc bāzes noteikuma
   (.admin .design-wrap padding: 20px 0 20px 20px) kreisā puse ir REDZAMA kā
   balta josla gar pelēko canvas laukumu, bet labā puse (0) nav - tur tāpat
   jau ir baltais panelis. Rezultāts: viss skats izskatās nobīdīts pa labi.
   Uzliekam TIKAI šim skatam simetrisku horizontālo padding. Mobilajā skatā
   (media max-width:768 - padding:20px 16px !important) abas puses jau tagad
   ir vienādas, un tas !important noteikums paliek virsroka. */
.admin .design-wrap.design-wrap-preview{
    /* Review skatam sānjoslas NAV, tāpēc tam vajag simetriskas malas abās
       pusēs; bāzes noteikums dod tikai kreiso. padding-left te atkārtots
       skaidri, lai abas malas ir redzamas vienuviet un nenoiet viena no
       otras, ja bāzes vērtība kādreiz mainās. */
    padding-left: 20px;
    padding-right: 20px;
    /* Kartītei virspusē atstarpes nav vispār (.add-product-top beidzas tieši
       tur, kur sākas kartīte), apakšā bāzes noteikums deva 20px - nevienādi,
       un tie 20px rīkam vienkārši atņēma augstumu. padding-top PALIEK 55px:
       tā nav vizuāla atstarpe, bet vieta zem fiksētās admin galvenes (54px). */
    padding-bottom: 8px;
}

.admin .design-wrap-preview .add-product-container{
    height:100%;
    align-items: stretch;
    /* Koplietotais .admin .add-product-container (css ~1831) dod 20px padding -
       tas der kartītēm ar tekstu, bet šeit iekšā ir iframe ar pašu dizaina
       rīku, kas jau ir "full-bleed" (savs pelēkais fons līdz malām). 20px
       tāpēc bija tikai tukša balta josla apkārt, kas atņēma rīkam platumu un
       augstumu. overflow:hidden - lai kartītes noapaļotie stūri (6px) apgriež
       iframe taisnos stūrus, kad starp tiem vairs nav atstarpes. */
    padding: 0;
    overflow: hidden;
}
.admin .design-wrap-preview .add-product-container iframe{
    height:100%;
    width:100%;
}
.design-objects{width:100%;padding:0px 0;height:100%;box-sizing:border-box;}

.design-objects .design-objects-btn{display:none;position:absolute;right:0px;border-radius: 0 10px 10px 0;top:60px;width:20px;height:40px;cursor:pointer;background:#EEEEEE;}
.design-objects-content{overflow: hidden;height:100%;box-sizing:border-box;padding:0px 0;}
.design-side{
  flex-grow: 1;
  position:relative;
  margin:0 auto 0px auto;
  position:absolute;
  right:530px;
  left:0px;
  height: calc(100% - 0px);
  overflow-x: auto;
  overflow-y:hidden;
  -webkit-overflow-scrolling:touch;
  border: 0px solid #000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.design-pages-content{height:100%;padding:0 0px;box-sizing:border-box;
  display: flex;
  justify-content: space-around;
  transform-origin: center top;
  width: 100%;
  position:relative;
}


.zoomoverflow .design-side{display:block;}
.zoomoverflow .design-pages-content{transform-origin: left top;}

.design-pages-content .page-tools{display:flex;justify-content: flex-end;padding:8px 0;height:34px; }
.design-pages-content .page-tools .page-tools-items{display:none;background: rgba(30, 46, 87, 0.7);border-radius: 5px;padding:5px;}
.design-pages-content .page-tools .page-tools-items-block{display:flex; align-items: center;height:24px;}
.design-pages-content .page-tools .page-tools-items-block a{display:block;color:#fff;padding: 0px 3px;display:flex;}
.design-pages-content .page-tools .page-tools-items-block a span{height:24px;margin:0;padding:0;}
.design-side .design-page.startdrawing .page-tools .page-tools-items-block .stop-drawing-btn{display:block;}

.design-pages-content .design-page.selected .page-tools .page-tools-items{display:block;}
.design-side .design-pages{margin:0 auto;position:relative;width: 100%;/*max-width: calc(2480px + 32px);*/}
.design-side .design-page{/*position:absolute;left:0;top:0;*/width:100%;height:100%;padding:16px;box-sizing:border-box;background: #EBECF0;}
.design-side .design-page{z-index:0;}
.design-side .design-page.template-page{display:none;}
.design-side .design-page.selected{z-index:1;opacity:1;}


.drawToolsItems{display:flex;flex-direction: row;padding: 0 0 20px 0;}
.drawToolsItems .drawOption{margin:7px 14px 0 0;width:44px;height:44px;cursor: pointer;}
.drawToolsItems .drawOption label{width:44px;height:44px;cursor: pointer;display:block;}
.drawToolsItems .drawOption input{display:none;}
.drawToolsItems .drawOption.pencil{background: url(/images/svg/worksheet/draw/pencil.svg) no-repeat center;}
.drawToolsItems .drawOption.pencil.selected{background: url(/images/svg/worksheet/draw/pencil-pressed.svg) no-repeat center;}
.drawToolsItems .drawOption.line{background: url(/images/svg/worksheet/draw/line.svg) no-repeat center;}
.drawToolsItems .drawOption.line.selected{background: url(/images/svg/worksheet/draw/line-pressed.svg) no-repeat center;}
.drawToolsItems .drawOption.rect{background: url(/images/svg/worksheet/draw/line.svg) no-repeat center;}
.drawToolsItems .drawOption.rect.selected{background: url(/images/svg/worksheet/draw/line-pressed.svg) no-repeat center;}
.drawToolsItems .drawOption.erase{background: url(/images/svg/worksheet/draw/erase.svg) no-repeat center;}
.drawToolsItems .drawOption.erase.selected{background: url(/images/svg/worksheet/draw/erase-pressed.svg) no-repeat center;}

.startDraw .startDrawOff{display:none;}
.startDraw a.btn{padding: 8px 20px;text-align:center;}

.design-page.startdrawing .startDraw .startDrawOff{display:block;}
.design-page.startdrawing .startDraw .startDrawOn{display:none;}

.design-object-item .worksheet-item-buttons{display:none;}
.worksheet-task-item .worksheet-item-buttons{display:none;padding:0px;background: #40BFFF;box-sizing:border-box;border-radius: 5px;position:absolute;right:0;top:-40px;white-space: nowrap;}
.worksheet-task-item .worksheet-item-buttons.table-tools-rows{right:0px;top:auto;bottom:-30px;height:auto;padding:0;background:none;}
.worksheet-task-item .worksheet-item-buttons.table-tools-columns{height:auto;padding:0;background:none;right:-24px;top:0px;bottom:auto;white-space: normal; }
.worksheet-task-item .worksheet-item-buttons.table-tools-rows button{width:20px;height:20px;}
.worksheet-task-item .worksheet-item-buttons.table-tools-columns button{display:block;width:20px;height:20px;margin-bottom:4px;}
.worksheet-task-item .worksheet-item-buttons.table-tools-columns button svg,
.worksheet-task-item .worksheet-item-buttons.table-tools-rows button svg{display:block;width:20px;height:20px;}
.worksheet-task-item .worksheet-item-buttons button{background:none;cursor:pointer;width:34px;height:34px;padding:5px;border-radius: 5px;}
.worksheet-task-item.editMode .worksheet-item-buttons button.copy-item{display:none;}
.worksheet-task-item.editMode .worksheet-item-buttons button.delete-item{display:none;}

.worksheet-task-item .worksheet-item-buttons button.change-direction,
.worksheet-task-item .worksheet-item-buttons button.mark-as-given{display:none;}
.worksheet-task-item .worksheet-item-buttons button.mark-as-given.on{background:#C8EAF8;}
.worksheet-task-item .worksheet-item-buttons button.mark-as-given.on svg path{stroke:#40BFFF;}
.worksheet-task-item.editMode .worksheet-item-buttons button.mark-as-given,
.worksheet-task-item.editMode .worksheet-item-buttons button.change-direction{display:inline-block;}
.worksheet-task-item.editMode .worksheet-item-buttons button.direction-vertical{transform: rotate(90deg);}
.worksheet-task-item.editMode .worksheet-item-buttons button.direction-vertical{transform: rotate(90deg);}

.editModeOn .moveable-area{display:none !important;}

.worksheet-task-item .worksheet-item-buttons button svg{display:block;width:24px;height:24px;}
.worksheet-task-item.selected .worksheet-item-buttons{display:block;}
.gridwrap .worksheet-task-item .text-editor.table{height:100%;min-height:100px;display:flex;position:relative;  }
.gridwrap .worksheet-task-item .text-editor.table  table{height:100%;flex: 1 1;border-spacing:0px;}
.gridwrap .worksheet-task-item .text-editor.table  table tbody{height:100%;}
.gridwrap .worksheet-task-item .text-editor.table  table tr{}
.gridwrap .worksheet-task-item .text-editor.table  table td{position:relative;border:1px solid #000000;padding:4px 8px;box-sizing:border-box;word-wrap: break-word; /* remove initial padding */}
.gridwrap .worksheet-task-item .text-editor{padding:0px;box-sizing:border-box;/*overflow:hidden;*/}
.gridwrap .worksheet-task-item .text-editor input,
.gridwrap .worksheet-task-item .questions-content .answers-content .answer-item .answer-text input
{min-width:40px;width:auto;padding:2px 4px;margin: 2px 0; background: #DADEE3;border-radius:4px;color:#1E2E57;text-align:center; }

.gridwrap .worksheet-task-item .text-editor input.evaluate-active-input{
    background:#8895A5;color:#fff;
}

.gridwrap .worksheet-task-item .text-editor ul{padding: 10px 0px;list-style-position: outside;}
.gridwrap .worksheet-task-item .text-editor ul li,.gridwrap .worksheet-task-item .text-editor ol li{padding:0px 0 0px 14px;list-style-position: inside;position:relative;}
.gridwrap .worksheet-task-item .text-editor ul li li,.gridwrap .worksheet-task-item .text-editor ol li li{padding:0px 0 0px 20px;list-style-position: inside;}
.gridwrap .worksheet-task-item .text-editor ul li:before {
    content: "";
    position:absolute;
    left: 0px;
    top: 8px;
    padding:0px;
    background: #313338;
    display:inline-block;
    width:6px;height:6px;border-radius:6px;
}
.gridwrap .worksheet-task-item .text-editor ul li li:before {
    content: "";
    position:absolute;
    left: 4px;
    top: 12px;
    padding:0px;
    background: #67696e;
    display:inline-block;
    width:4px;height:4px;border-radius:4px;
}

.gridwrap .worksheet-task-item .text-editor ol {margin: 16px 0 16px 60px;}
.gridwrap .worksheet-task-item .text-editor ol li{background:none;padding:5px 0 5px 5px;}

.gridwrap .worksheet-task-item .text-editor.table{padding:0;}
.gridwrap .worksheet-task-item .text-editor.table  table td.active{outline: 2px solid #156e9d;outline-offset: -2px;}
.gridwrap .worksheet-task-item .text-editor.table .table-task-textarea,
.gridwrap .worksheet-task-item .text-editor.table .table-text-editor{position:absolute;left:0px;top:0px;width:100%;height:100%;padding:4px 8px;box-sizing:border-box;border:none; resize: none;display:block;font-size:16px;}
.gridwrap .worksheet-task-item .text-editor.table td .text-editor input{min-width:1px;width:auto;padding:4px 4px; background: #DADEE3;border-radius:4px;color:#1E2E57; }

.gridwrap .worksheet-task-item .text-editor .ql-align-right{text-align:right;}
.gridwrap .worksheet-task-item .text-editor .ql-align-left{text-align:left;}
.gridwrap .worksheet-task-item .text-editor .ql-align-center{text-align:center;}
.gridwrap .worksheet-task-item .text-editor .ql-align-justify{text-align:justify;}

.gridwrap .worksheet-task-item .heading {width:100%;padding:5px 10px;box-sizing:border-box;border-bottom: 1px solid #EBECF0;font-family: var(--brand-font, 'Roboto');
    font-style: normal;
    font-weight: 500;
    font-size: 23px;
    line-height: 36px;
    color: #1E2E57;
}


.gridwrap .worksheet-task-item table.crossword-grid tr td {
    border: 1px solid #fff;
    background: #EBEEF2;
    border-radius: 5px;
    border-collapse: collapse;
    padding: 0;
    margin: 0;
    width: 20px;
    font-weight: bold;
    position:relative;
}

.main-content.worksheet.worksheet-student .gridwrap .worksheet-task-item table.crossword-grid tr td{border: 1px solid #3C3C3C;}
.gridwrap .worksheet-task-item table.crossword-grid tr td input.inputcell {
    height: 20px;
    width: 20px;
    padding: 0px;
    text-align: center;
    color: #1E2E57;
    font-weight: 700;
    border: none;
    background: none;
    font-size: 16px;
    font-family: Arial;
}
.gridwrap .worksheet-task-item table.crossword-grid tr td .grid-number{position:absolute;left:0;top:0px;font-size:9px;line-height:9px;}
.gridwrap .worksheet-task-item .pyramid_grid input.inputcell{
    height: 50px;
    width: 50px;
    padding: 0px;
    text-align: center;
    color: #1E2E57;
    font-weight: bold;
    border: none;
    background: none;
    font-size: 16px;
    font-family: Arial;

    display: inline-block;
    width: 48px;
    height: 48px;
    background-color: #eee;
    border: 2px solid #ccc;

    border: 1px solid #fff;
    background: #EBEEF2;
    border-radius: 5px;

}
.gridwrap .worksheet-task-item .pyramid_grid input.inputcell.inputcell_grey,
.gridwrap .worksheet-task-item .crossword-grid input.inputcell.inputcell_grey{background:#C0C0C0;}
.gridwrap .worksheet-task-item .pyramid_grid input.inputcell.disabled,

.gridwrap .worksheet-task-item .pyramid_grid input.inputcell.inputcell_active,
.gridwrap .worksheet-task-item .crossword-grid input.inputcell.inputcell_active{background:#95D2FF;}
.gridwrap .worksheet-task-item .crossword-grid input.inputcell.disabled,
.gridwrap .worksheet-task-item .crossword-grid input.inputcell{background:#3C3C3C;}
.gridwrap .worksheet-task-item .pyramid_grid{
    display: inline-block;
}
.gridwrap .worksheet-task-item .resize-drag-content.definition{background: #F4F6F9;border-radius: 8px;color: #1E2E57;}
.gridwrap .worksheet-task-item .definition-title{width:24px;height:24px;padding:16px 12px;}
.gridwrap .worksheet-task-item .text-editor{padding:6px 12px 6px 16px;}

.navigation-content.navigation-worksheet-properties .RitchTextEditor .ql-editor .ql-size-small,
.gridwrap .worksheet-task-item .text-editor .ql-size-small{font-size:12px;}
.gridwrap .worksheet-task-item .heading .ql-size-small{font-size:12px;}


.navigation-content.navigation-worksheet-properties .RitchTextEditor .ql-editor,
.gridwrap .worksheet-task-item .text-editor{font-size:16px;}
.navigation-content.navigation-worksheet-properties .RitchTextEditor .ql-editor{min-height: 300px;}
.gridwrap .worksheet-task-item .heading{font-size:22px;}

.navigation-content.navigation-worksheet-properties .RitchTextEditor .ql-editor .ql-size-large,
.gridwrap .worksheet-task-item .text-editor .ql-size-large{font-size:20px;}
.gridwrap .worksheet-task-item .heading .ql-size-large{font-size:26px;}


.navigation-content.navigation-worksheet-properties .RitchTextEditor .ql-editor .ql-size-huge,
.gridwrap .worksheet-task-item .text-editor .ql-size-huge{font-size:24px;}
.gridwrap .worksheet-task-item .heading .ql-size-huge{font-size:32px;}


.gridwrap .worksheet-task-item .text-editor .ql-font-roboto,
.gridwrap .worksheet-task-item .heading .ql-font-roboto{font-family: var(--brand-font, 'Roboto');}

.gridwrap .worksheet-task-item .text-editor .ql-font-arial,
.gridwrap .worksheet-task-item .heading .ql-font-arial{font-family: arial;}


.gridwrap .worksheet-task-item .text-editor .ql-font-inter,
.gridwrap .worksheet-task-item .heading .ql-font-inter{font-family: 'Inter';}


.gridwrap .worksheet-task-item .questions-content{padding:10px; }
.gridwrap .worksheet-task-item .questions-content .answers-content{display:flex;flex-direction: column;}
.gridwrap .worksheet-task-item .questions-content .answers-content .answer-item{display:flex;padding: 0 0 7px 0;align-items:center;}
.gridwrap .worksheet-task-item .questions-content .question-title{
    font-family: var(--brand-font, 'Roboto');
    font-style: normal;
    font-weight: bold;
    font-size: 16px;
    line-height: 24px;
    display: flex;
    align-items: center;
    color: #1E2E57;
}
.gridwrap .worksheet-task-item .questions-content .answers-content .answer-item .answer-option {
    background: #FFFFFF;
    border: 1px solid rgba(11, 95, 255, 0.5);
    box-sizing: border-box;
    border-radius: 2px;
    width:24px;height:24px;
    flex: 0 0 24px;
    cursor:pointer;
}
.gridwrap .worksheet-task-item .questions-content .answers-content .answer-item .answer-option.sort-sequence-option{background: #DADEE3;border-radius: 5px;border-color:#DADEE3;overflow:hidden;width:44px;height:44px;flex: 0 0 44px;}
.gridwrap .worksheet-task-item .questions-content .answers-content .answer-item .answer-option.sort-sequence-option input{background:none;width:44px;height:44px;text-align:center;color:background: #1E2E57;color: rgba(30, 46, 87, 0.9);font-weight: bold;}
.gridwrap .worksheet-task-item .questions-content .answers-content .answer-item .answer-option.option-checked{background: url(/images/svg/checkbox.svg) no-repeat center;background-size: contain;}
.gridwrap .worksheet-task-item .questions-content .answers-content .answer-item .answer-text{padding: 0 0 0 13px;}
.gridwrap{
  box-shadow: 0px 5.0047px 16.015px rgba(0, 0, 0, 0.125);
  background:#fff;
  padding:0px;
  box-sizing:border-box;
  position:relative;
  z-index:1;
  width:595px;height:842px;
  /*width:2480px;height:3508px;*/
  -webkit-transform-origin: 0 0;
  transform-origin: 0 0;
}
.gridwrap-content{position:absolute;left:42.5px;top:42.5px;width: calc(100% - 85px);/*height:calc(100% - 85px);*/left:0;bottom:15px;width:510px;/*height:757px;*/width:100%;/*height:100%;*//*top:50px;bottom:50px;height:auto;*/z-index:1;background:transparent;    display: flex;flex-direction: column;}
.gridwrap-draw-content{position:absolute;    left: 42.5px;
    top: 42.5px;
    width: calc(100% - 85px);
    height: calc(100% - 85px);
    width: 510px;
    height: 757px;z-index:0;}
#grid-lines{display: none;}
.grid-lines{
    position: absolute;
    left: -1px;
    top: 0px;
    bottom:0px;
    right:0;
}

.task-panel{width:100%;flex: 1 1 auto;border:0px solid silver;position:relative;}
.task-panel .task-header{position:absolute;height:42.5px;padding: 0 42.5px;width:100%;display:flex;box-sizing:border-box; align-items: center; }
.task-panel .task-header .task-title{flex: 1 1 100%}
.task-panel .task-header .task-tools{flex: 1 1 auto;background: rgba(30, 46, 87, 0.7);border-radius: 5px;padding: 5px 5px; display:flex;width:34px;box-sizing:border-box;align-items: center; align-content: center; position:absolute;right:-46px;top:6px; flex-direction: column; }
.task-panel.evaluated .task-header .task-tools .evaluate-task{background:#51E69C;}
.task-panel .task-header .task-tools > div{cursor: pointer;align-items: center;align-content: center;display:flex;padding:4px 1px;}
.task-panel .task-header .task-tools img{width:24px;height:24px;}
/*.task-panel .task-panel-content{left:42.5px;top:42.5px;position:absolute;width: calc(100% - 85px);height:calc(100% - 70px);}*/
.task-panel .task-panel-content{left:0px;top:0px;position:absolute;width: calc(100% - 0px);height:calc(100% - 0px);}

.movableTarget .task-panel-content{
    cursor: move;
}
/*.movableTarget :not(.task-panel-content){
    cursor: no-drop;
}*/
.student-worksheet .task-panel .task-header .task-tools .evaluate-task{display: none;}
.gutter {
    background-color: #eee;
    background-repeat: no-repeat;
    background-position: 50%;
}
.gutter.gutter-vertical {
    background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAeCAYAAADkftS9AAAAIklEQVQoU2M4c+bMfxAGAgYYmwGrIIiDjrELjpo5aiZeMwF+yNnOs5KSvgAAAABJRU5ErkJggg==');
    cursor: row-resize;
}

.main-content.worksheet.worksheet-student .gutter.gutter-vertical{background-image:none;cursor: auto;background:#fff;border:none;}

.task-panel-1, .task-panel-2, .task-panel-3 {
    flex: 1 1 auto;
}

.tasks-splitter{
  flex: 0 0 auto;
  height: 18px;
  background: url(https://raw.githubusercontent.com/RickStrahl/jquery-resizable/master/assets/hsizegrip.png) center center no-repeat #535353;
  cursor: row-resize;
}

.gridwrap-draw-content img{width:100%;}
.gridwrap-header{position:absolute;left:20px;right:20px;top:0;height:40px;border-bottom:1px solid #9AA5B1;
  font-size: 11px;
  letter-spacing: 0.16015px;
  color: #7B8794;
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  justify-content: center;
}
.gridwrap-header b{color: #323F4B;}
.gridwrap-footer{position:absolute;left:20px;right:20px;bottom:0;display:flex;justify-content: space-between;height:40px;line-height:40px;align-items: center;/*border-top:1px solid #9AA5B1*/}

.gridwrap-footer .page-number{color: rgba(30, 46, 87, 0.4);flex: 0 0 auto;font-family: var(--brand-font, 'Roboto');
  font-style: normal;
  font-weight: normal;
  font-size: 11px;
  line-height: 16px;
}
.gridwrap-footer .worksheet-author{font-family: var(--brand-font, 'Roboto');
  font-weight: 300;
  font-size: 13px;
  line-height: 20px;
  display: flex;
  color: rgba(30, 46, 87, 0.4);
  align-items: center;
  padding: 0 0 12px 0;
}
.gridwrap-footer .worksheet-author svg{padding-left:15px;}
.gridwrap-footer .page-icon{color: rgba(30, 46, 87, 0.4);flex: 0 0 auto;}

.canvas-wrap{}
.canvas-container.erasing,.canvas-container.pencil{cursor:none;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}
.canvas-container.erasing .cursor{background:url(/images/svg/worksheet/page/eraser.svg) no-repeat center; background-size: cover;width:20px;height:20px;}
.canvas-container.pencil .cursor{background:#000000;border-radius:10px; width:8px;height:8px;}
.canvas-container canvas{z-index:10;}
.cursor{z-index:10;display:none;position:absolute;left:-600px;top:-600px;}
.design-side .design-page.startdrawing .canvas-wrap{display:block;}
.imageTemp{position:absolute;left:0;top:0;}
.imageView{
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  position:relative; /* Necessary for correct mouse co-ords in Firefox */
}




.gridwrap .worksheet-task-item svg, .student-tool svg{width:100%;height:100%;display:block; overflow: visible; }
.design-pages-content .worksheet-task-item.student-tool{width:auto;z-index:99 !important;display:-inline-block;position:absolute;touch-action: none;box-sizing: border-box;border:none;padding: 0px;border-radius:0px;}
.gridwrap .worksheet-task-item{padding:2px;width:300px;display:-inline-block;position:absolute;touch-action: none;box-sizing: border-box;border:1px dashed silver;padding: 1px;border-radius:5px;}
.evaluation-worksheet .gridwrap .worksheet-task-item, .evaluation-worksheet .gridwrap .worksheet-task-item:hover{border:none;padding:2px;}
.page-worksheets.student-worksheet .main-content.worksheet.worksheet-student .gridwrap .worksheet-task-item{border:none;padding:2px;}


 .page-worksheets.student-worksheet .istask.image .image-container{cursor:pointer}
.gridwrap .worksheet-task-item.small{width:120px;}
.gridwrap .worksheet-task-item.heading{height: auto !important;}
.gridwrap .worksheet-task-item.text:not(.student-text){height:auto !important;/*min-height:90px;*/}
.gridwrap .worksheet-task-item.image{width:200px;height:200px;border:1px solid silver; border-radius: 5px;box-sizing:border-box;}
.gridwrap .worksheet-task-item.image .image-container{overflow:hidden;}
.gridwrap .worksheet-task-item.table{width:300px;height:150px;}
.gridwrap .worksheet-task-item .log-field {display:none;position:absolute;left:0;bottom:-28px;height:14px;opacity:0.6;border-radius:5px;min-width:60px;background:#000;color:#fff;padding:5px;font-size:10px;font-weight:bold;white-space: nowrap;}
.gridwrap .worksheet-task-item:hover{border: 1px dashed #A5ABB3;padding:1px;border-radius: 5px; box-sizing: border-box; }
.gridwrap .worksheet-task-item.image.selected{padding:0px;}
.gridwrap .worksheet-task-item.image:hover{padding:1px;}
.gridwrap .worksheet-task-item.image.selected:hover{padding:0px;}
.gridwrap .worksheet-task-item.selected .log-field{display:block;}

.gridwrap .worksheet-task-item .log-field.hidden,
.gridwrap .worksheet-task-item.selected .log-field.hidden{display:none;}

.gridwrap .worksheet-task-item.selected{border:2px solid #3399CC;padding:0;border-radius: 5px;z-index:999999 !important;}
.moveable-control-box .moveable-line{background:none !important;}
.moveable-control-box .moveable-control.moveable-origin{display:none !important;}
.gridwrap .worksheet-task-item.questions,
.gridwrap .worksheet-task-item.ray-of-numbers{height:auto !important;}
.gridwrap .worksheet-task-item.pairing{width:auto !important;}
.gridwrap .worksheet-task-item.crossword,
.main-content.worksheet.worksheet-student .gridwrap .worksheet-task-item.crossword{width:auto;width:100%;}
.gridwrap .worksheet-task-item.pyramid {width:auto;}
.gridwrap .worksheet-task-item.crossword-type-2{width:auto;}
.gridwrap .worksheet-task-item.pairing{width:140px;}
.gridwrap .worksheet-task-item .resize-drag-content{width:100%;height:100%;/*overflow:hidden;*/ box-sizing: border-box;border-radius: 5px;}

.gridwrap .worksheet-task-item .resize-drag-content.student-text-content{border:3px solid silver;}

.main-content.worksheet.worksheet-student .worksheet-task-item .resize-drag-content{border-radius:0;padding-bottom:1px;}
.main-content.worksheet.worksheet-student .worksheet-task-item .resize-drag-content .student-rullerx,
.main-content.worksheet.worksheet-student .worksheet-task-item .resize-drag-content.lienalis-content,
.teacher .main-content.worksheet .worksheet-task-item .resize-drag-content.lienalis-content{width:453.33px;/*width: 15.8cm;*/}


.main-content.worksheet.worksheet-student .worksheet-task-item .resize-drag-content.uzsturis-content,
.teacher .main-content.worksheet .worksheet-task-item .resize-drag-content.uzsturis-content{width:530px;}
.main-content.worksheet.worksheet-student .worksheet-task-item .resize-drag-content .student-uzturis,
.main-content.worksheet.worksheet-student .worksheet-task-item .resize-drag-content.uzturis-content{/*width: 18.5cm;*/}
.main-content.worksheet.worksheet-student .worksheet-task-item {/*width:auto;*/}
.gridwrap .worksheet-task-item .resize-drag-content .image-container{position:relative;height:100%;}
.gridwrap .worksheet-task-item .resize-drag-content .image-container img{position:absolute;left:0;top:0;}
.gridwrap .worksheet-task-item .resize-drag-content .imageControl{display:none;}
.gridwrap .worksheet-task-item .resize-drag-content .video-embed-code{text-align:center;padding:0px;overflow:hidden;position:relative;height:100%;min-height:100px;}
.gridwrap .worksheet-task-item .resize-drag-content .video-embed-code iframe{position:absolute;left:0; top:0;width:100% !important;height:100% !important;}
.gridwrap .worksheet-task-item .resize-drag-content .video-embed-code img{position:absolute;left:0; top:0;width:100% !important;height:100% !important;}

.gridwrap .worksheet-task-item .resize-drag-content .chart-content{
display: flex;
justify-content: center;
align-items: center;
height: 100%;
overflow: hidden!important
}
.gridwrap .worksheet-task-item .resize-drag-content .chart-content img{
flex-shrink: 0;
min-width: 100%;
min-height: 100%
}

.gridwrap .worksheet-task-item .resize-drag-content.crossword-content{display:flex; flex-direction: row;position:relative;}
.gridwrap .worksheet-task-item.pyramid .resize-drag-content.crossword-content{display:block;text-align:center;}
.gridwrap .worksheet-task-item .resize-drag-content.crossword-content .crossword-questions h3{font-size:14px;line-height:24px;padding:0 0 0 4px;}

.gridwrap .worksheet-task-item .resize-drag-content.crossword-content .crossword-questions-wrap{position:relative;width:100%;padding:0 10px 10px 10px;box-sizing:border-box;overflow-y:auto;flex: 1;}
.gridwrap .worksheet-task-item .resize-drag-content.crossword-content .crossword-questions {width:100%;/*position:absolute;left:0;top:0;*/height:100%;}
.gridwrap .worksheet-task-item .resize-drag-content.crossword-content .crossword-questions-item{position:relative;padding:0 2px;}
.gridwrap .worksheet-task-item .resize-drag-content.crossword-content .crossword-questions-item span{position:absolute;left:8px;top:8px;font-size:12px;}
.gridwrap .worksheet-task-item .resize-drag-content.crossword-content .crossword-questions-item input,
.gridwrap .worksheet-task-item .resize-drag-content.crossword-content .crossword-questions-item textarea{padding:4px 4px 4px 20px;box-sizing:border-box;width:100%;border:1px solid silver;border-radius:3px;}
.gridwrap .worksheet-task-item .resize-drag-content.crossword-content .crossword-questions-item textarea{resize: none;height:26px;overflow:hidden;}

.gridwrap .worksheet-task-item .resize-drag-content.crossword-content .crossword-questions-item .question{padding-left:24px;}
.gridwrap .worksheet-task-item .resize-drag-content.crossword-content .crossword-questions-item span{font-size:16px;left:0;top:0;}

.main-content.worksheet.worksheet-student .gridwrap .worksheet-task-item .resize-drag-content.crossword-content .crossword-questions-item span{position:absolute;left:8px;top:1px;font-size:16px;}

.main-content.worksheet.worksheet-student .gridwrap .worksheet-task-item .resize-drag-content.crossword-content .crossword-questions-item div.question{
    padding: 0px 0px 0px 24px;
    box-sizing: border-box;
    width: 100%;
    cursor: pointer;
}

.main-content.worksheet.worksheet-student .gridwrap .worksheet-task-item .resize-drag-content.crossword-content .crossword-questions-item textarea{padding:0px 4px 0px 20px;box-sizing:border-box;width:100%;height:auto;border:none;border-radius:3px;cursor: pointer;}

.gridwrap .worksheet-task-item .resize-drag-content.pairing-content{display:flex;padding:5px;width:145px;}
.gridwrap .worksheet-task-item .resize-drag-content.pairing-content .pairing-item{flex: 0 0 50px;border:1px solid silver;height:50px;margin: 5px;}
#outer-dropzone {
  height: 140px;
}
#inner-dropzone {
  height: 80px;
}
.gridwrap .worksheet-task-item .resize-drag-content.pairing-content .pairing-item {
  background-color: #bfe4ff;
  border: dashed 4px transparent;
  border-radius: 4px;
  transition: background-color 0.3s;
}

.drop-active {
  border-color: #aaa;
}

.drop-target {
  background-color: #29e;
  border-color: #fff;
  border-style: solid;
}

.drag-drop-pairing {
  display: inline-block;
  min-width: 40px;
  padding: 2em 0.5em;
  margin: 1rem 0 0 1rem;
  color: #fff;
  background-color: #29e;
  border: solid 2px #fff;
  touch-action: none;
  -webkit-transform: translate(0px, 0px);
          transform: translate(0px, 0px);
  transition: background-color 0.3s;
}

.drag-drop-pairing.can-drop {
  color: #000;
  background-color: #4e4;
}

.gridwrap .worksheet-task-item .resize-drag-content .dragable-content{display:flex;height:100%;box-sizing:border-box;padding:5px;flex-wrap:wrap;justify-content: space-evenly;}
.gridwrap .worksheet-task-item .resize-drag-content .dragable-content .dragable-groups {
    display: flex;
    width: 100%;
    box-sizing: border-box;
    padding: 5px;
    flex-wrap: wrap;
    justify-content: space-evenly;
    align-content: flex-start;
    position:relative;
}
.gridwrap .worksheet-task-item .resize-drag-content .dragable-content .dragable-groups .dragable-group:last-child{border:none;}
.gridwrap .worksheet-task-item .resize-drag-content .dragable-content .dragable-item{
  width: 78px;
  height: 78px;
  border:1px solid silver;margin: 5px;
  background-color: #bfe4ff;
  /*border: none;*/
  border-radius: 4px;
  transition: background-color 0.3s;
  box-sizing: border-box;
  position:absolute;
  z-index:2;
  align-items: center;
  display: flex;
  justify-content: center;
  cursor: move;
}
.gridwrap .worksheet-task-item .resize-drag-content .dragable-content .dragable-item img{width: 100%;border-radius: 4px;}
.gridwrap .worksheet-task-item .resize-drag-content .dragable-content .dragable-item .delete-dragable-group-item{
  position:absolute;right: -12px;top:-12px;
  cursor: pointer;
  display: none;
}
.gridwrap .worksheet-task-item .resize-drag-content .dragable-content .dragable-item:hover .delete-dragable-group-item{display: block;}

.gridwrap .worksheet-task-item .resize-drag-content .dragable-content .dragable-item-target{
  width: 80px;
  height: 80px;
  border:1px dotted silver;margin: 5px;
  background-color: #EBECF0;
  border-radius: 4px;
  transition: background-color 0.3s;
  box-sizing: border-box;
  position:relative;
  z-index:1;
}
.gridwrap .worksheet-task-item .resize-drag-content .dragable-content .dragable-group{
  border-right: 1px dotted #7B7B7B;
  flex: 1 1;
  justify-content: flex-start;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 0 10px 0;
}

.gridwrap .worksheet-task-item .resize-drag-content .dragable-content .dragable-group-heading{text-align: center;}

.gridwrap .worksheet-task-item.ray-of-numbers .ray-of-numbers-content{padding: 20px 0 0 0px;}
.gridwrap .worksheet-task-item.ray-of-numbers .ray-of-numbers-line{position:relative;width:100%;height: 30px;padding:15px 0;display: flex;justify-content: space-between;}

.gridwrap .worksheet-task-item.ray-of-numbers .ray-of-numbers-line div.stroke{position:relative;height: 30px;border-left: 1px solid #1E2E57;}
.gridwrap .worksheet-task-item.ray-of-numbers .ray-of-numbers-line div.stroke .stroke-number,
.gridwrap .worksheet-task-item.ray-of-numbers .ray-of-numbers-line div.arrow .stroke-number{
  position:absolute;
  width: 30px;
  left: -15px;
  text-align: center;
  top:-30px;
  color: #1E2E57;
  font-weight: bold;
  white-space: nowrap;
  display: flex;
  justify-content: center;
}
.gridwrap .worksheet-task-item.ray-of-numbers .ray-of-numbers-line div.line{position:absolute;top:50%;left:0;right:0;border:none;border-top: 1px solid #1E2E57;}

.gridwrap .worksheet-task-item.ray-of-numbers .ray-of-numbers-line div.arrow{

  position:relative;
  height:30px;
}

.gridwrap .worksheet-task-item.ray-of-numbers .ray-of-numbers-line div.arrow::after, .gridwrap .worksheet-task-item.ray-of-numbers .ray-of-numbers-line div.arrow::before {
  content: '';
  position: absolute;
  width: 10px;
  height: 1px;
  right: -2px;
  top:30px;
  background-color: #1E2E57;
}

.gridwrap .worksheet-task-item.ray-of-numbers .ray-of-numbers-line div.arrow::after {
  top: 11px;
  transform: rotate(45deg);
}

.gridwrap .worksheet-task-item.ray-of-numbers .ray-of-numbers-line div.arrow::before {
  top: 19px;
  transform: rotate(-45deg);
}

.gridwrap .worksheet-task-item.ray-of-numbers  .ray-of-numbers-numbering{position:absolute;
  z-index:0;
  left:-13px;
  right:-13px;
  top:0;
  display: flex;
  justify-content: space-between;}

.gridwrap .worksheet-task-item.ray-of-numbers  .ray-of-numbers-numbering > div{
    display: flex;
    align-items: center;
    padding: 4px 10px;
    box-sizing: border-box;
    background: #F4F6F9;
    border-radius: 10px;
    color: #1E2E57;
    font-weight: bold;
    display: none;
}

.gridwrap .worksheet-task-item .disable-overlay{position:absolute;left:0;top:0;right:0;bottom:0;}
.gridwrap .worksheet-task-item.editMode .disable-overlay{display:none;}
.moveable-area{cursor: move;}

.gridwrap .worksheet-task-item.editMode .resize-drag-content  .imageControl{display:block;position:absolute;bottom:20px;width: 90%;margin-left: 5%;}
.gridwrap .worksheet-task-item .resize-drag-content .image-container .add-worksheet-image-btn,
.gridwrap .worksheet-task-item .resize-drag-content .image-container .add-worksheet-image-loading
{position:absolute;left:50%;top:50%; transform: translate(-50%, -50%); text-align:center; display:flex;justify-content: center; align-items: center;cursor:pointer;font-size:12px;}
.gridwrap .worksheet-task-item.selected .rotation-handle{display:block;}
.gridwrap .worksheet-task-item .item-title{display:none;}
.gridwrap .rotation-handle{
  padding: 3px 4px;
  display: table;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -55px;
  background-color: #fff;
  border-radius: 10rem;
  line-height: 1;
  text-align: center;
  font-weight: bold;
  color: #000;
  cursor: move;
  display:none;
}

.gridwrap .resize-handle{
  position: absolute;
  width: 32px;
  height: 32px;
  touch-action: none;
  display:none;
  cursor: pointer;
}
.gridwrap .worksheet-task-item.selected .resize-handle{display:block;}
.gridwrap .resize-top-handle{
  top:-17px;
  left:50%;
  transform: translateX(-50%);
}
.gridwrap .resize-bottom-handle{
  bottom:-17px;
  left:50%;
  transform: translateX(-50%);
}
.gridwrap .resize-left-handle{
  left:-17px;
  top:50%;
  transform: translateY(-50%);
}
.gridwrap .resize-right-handle{
  right:-17px;
  top:50%;
  transform: translateY(-50%);
}
.gridwrap .resize-right-handle.resize-top-handle{
  right:-32px;
  top:0px;
  left:auto;
  transform: translate(-50%, -50%);
}
.gridwrap .resize-right-handle.resize-bottom-handle{
  right:-32px;
  top:auto;
  bottom:-32px;
  left:auto;
  transform: translate(-50%, -50%);
}
.gridwrap .resize-left-handle.resize-bottom-handle{
  right:auto;
  top:auto;
  bottom:-32px;
  left:-32px;
  transform: translate(50%, -50%);
}
.gridwrap .resize-left-handle.resize-top-handle{
  right:auto;
  top:-32px;
  bottom:auto;
  left:-32px;
  transform: translate(50%, 50%);
}
.gridwrap .resize-handle div{
    width: 100%;
    height: 100%;
    min-width: 32px;
    min-height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.gridwrap .resize-handle div:after{
    content: "";
    width: 10px;
    height: 10px;
    background: #FFFFFF;

    border: 2px solid #5786FF;
    box-sizing: border-box;
    position: relative;
}
.color-selector{display: flex;flex-wrap: wrap; flex-direction: row; align-content: flex-start; justify-content: flex-start;padding: 0 0 20px 0;}
.color-selector-stroke, .size-selector{height:54px;display: flex;flex-wrap: wrap; flex-direction: row; align-content: flex-start; justify-content: flex-start; }
.color-selector-item, .size-selector-item{width:54px;height:54px;padding:5px 10px 5px 0;box-sizing:border-box;}
/*.color-picker, .size-picker{width:100%;display:flex;height:100%;border-radius:10px;background: #FFFFFF;box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.1);border-radius: 10px;
    font-style: normal;
    font-weight: 500;
    font-size: 16px;
    line-height: 24px;
    justify-content: center; align-items: center;
    cursor: pointer;
}
.size-picker.selected{background: #1E2E57;color: #FFFFFF;}
*/

.left-navigation .tabs-nav,
.left-navigation .tabs-library {
    list-style: none;
    margin: 0;
    padding: 14px 0 20px 0;
    display:flex;
}
.left-navigation .tabs-nav li,
.left-navigation .tabs-library li {
    display:flex; justify-content: center; align-content: center; align-items: center;
    padding: 0px;
    flex-grow: 1;
    /*flex-basis: 0;*/
}
.left-navigation .tabs-nav .tab-active a,
.left-navigation .tabs-library .tab-active a {
    cursor: default;
    color:rgba(var(--brand-accent-rgb, 154, 47, 88), 1);
    border-bottom:2px solid rgba(var(--brand-accent-rgb, 154, 47, 88), 1);
}
.left-navigation .tabs-nav a,
.left-navigation .tabs-library a{
    display: flex;
    font-size: 14px;
    font-weight: 600;
    height: 44px;
    padding:0;
    color:rgba(21, 25, 30, 1);
    justify-content: center; align-content: center; align-items: center;
}
.left-navigation .tabs-nav a:hover{color:rgba(var(--brand-accent-rgb, 154, 47, 88), 1); cursor: pointer;}



.left-navigation .tabs-stage {
  clear: both;
  padding: 0px 0;
  box-sizing:border-box;
  position: relative;
  height:calc(100% - 149px);
  overflow-y: auto;
}
.left-navigation .tabs-stage > div{}
/*.left-navigation .tabs-stage .design-objects-items{ position: relative;overflow-y: auto;}*/
.left-navigation .tabs-stage ul{padding:10px 0 10px 40px;}
.left-navigation .tabs-stage ul li{list-style-type: circle; }
.left-navigation .tabs-stage h2{
  font-family: var(--brand-font, 'Roboto');
  font-style: normal;
  font-weight: bold;
  font-size: 16px;
  line-height: 24px;
  color: #1E2E57;
  padding: 12px 22px;
}
.left-navigation .tabs-stage p {
  margin: 0;
  padding: 20px;
  color: hsl(0, 0%, 33%);
}

.left-navigation .tabs-stage ul.tabs-library{
    padding: 10px 0 10px 20px;
    gap:10px;
}

.left-navigation .tabs-stage ul.tabs-library li{
  display: flex;
  align-content: center;
  padding: 0px;
  flex-grow: 0;
  /* Bija "flex-basis:none" - nederīga vērtība, ko pārlūks klusi izmeta.
     Turklāt ar noklusējuma flex-shrink:1 šaurā ekrānā šīs cilnes sarāvās
     līdz atsevišķiem burtiem (sk. white-space zemāk). */
  flex-basis: auto;
  flex-shrink: 0;
}
/* <a> šeit ir display:flex, tāpēc "Pexels results (" + <span>0</span> + ")"
   kļūst par TRĪS atsevišķiem anonīmiem flex elementiem - mobilajā tie lūza
   katrs savā rindā, un ciļņu nosaukumi izskatījās kā burtu kolonnas. */
.left-navigation .tabs-nav a,
.left-navigation .tabs-library a{
  white-space: nowrap;
}

.student-worksheet .left-navigation .tabs-nav a{border-radius:20px;width: auto;height:auto;}

.worksheet-tool-item{position:relative;display:flex;padding:10px 22px;width:100%;box-sizing:border-box;align-items: center; align-content: center;}
.worksheet-tool-item:hover{background: #EBECF0;}

.worksheet-tool-icons-container, .worksheet-tool-shapes-container{display:none;padding:30px;}
.worksheet-tool-icons, .worksheet-tool-shapes{display:flex;flex-wrap:wrap; flex-direction:row;flex: 0 0 100%;
  background: #FFFFFF;
  box-shadow: 0px 1.25px 4px rgba(0, 0, 0, 0.25);
  border-radius: 20px;
}
.worksheet-tool-icons .design-object-item, .worksheet-tool-shapes .design-object-item{/*touch-action: none;*/width:33.33%;flex:1 1 auto; cursor:pointer; padding:10px;box-sizing:border-box;}
.worksheet-tool-shapes .design-object-item .resize-drag-content{padding:2px;}
.worksheet-tool-shapes .design-object-item .resize-drag-content div{display:none;}
.worksheet-tool-icons .design-object-item svg, .worksheet-tool-shapes .design-object-item svg{width:100%;height:100%;}
.worksheet-tool-icons .design-object-item .rotation-handle, .worksheet-tool-shapes .design-object-item .rotation-handle{display:none;}

.worksheet-tool-item .add-tool-title{ flex-grow: 1;position:relative;padding: 0 0 0 32px;
  font-family: var(--brand-font, 'Roboto');
  font-style: normal;
  font-weight: normal;
  font-size: 16px;
  line-height: 24px;
  color: #1E2E57;
}
.worksheet-tool-item .add-tool-title span{position:absolute;left:0;top:50%;transform: translateY(-50%);}
.worksheet-tool-item .add-tool-title span svg{height:100%;display:block;}
.worksheet-tool-item .add-tool-icon{flex: 0 0 28px; cursor: pointer;position:relative;}
.worksheet-tool-item .add-tool-icon .design-object-item{position:absolute;left:0;top:0;width:100%;height:100%;z-index:1;}
.worksheet-tool-item .add-tool-icon .design-object-item div{display:none;}
.worksheet-tool-item .add-tool-icon svg{display:block;}

.frontpage-welcome-wrap{
  display: flex;

}
.frontpage-welcome{
  background: #5786FF;
  box-shadow: 0px 6.25px 20px rgba(0, 0, 0, 0.125);
  border-radius: 10px;
  padding: 20px 20px 20px 20px;
  color: #FFFFFF;
  margin: 17px 42px 0 0;
  display: block;
  box-sizing: border-box;
  align-items: center;
  max-width: 760px;
  flex: 1 1 50%;
}
.frontpage-welcome .frontpage-welcome-image{flex: 0 0 40%;float:left;}
.frontpage-welcome .frontpage-welcome-image img{width: 100%;}
.frontpage-welcome .frontpage-welcome-text{padding: 0 0 0 10px;}
.frontpage-welcome .btn{
  background: #5786FF;
  box-shadow: 0px 6.25px 20px rgba(0, 0, 0, 0.125);
  border-radius: 10px;
  border:2px solid #ffffff;
font-weight: 600;
font-size: 18px;
line-height: 28px;
display: flex;
/* identical to box height, or 156% */
flex: 1 0;
width:auto;
float: left;
padding: 12px 16px 12px 16px;

/* White */

color: #FFFFFF;
}
.frontpage-welcome h1{
  font-weight: bold;
  font-size: 23px;
  line-height: 36px;
  color: #FFFFFF;
}

.frontpage-worksheets{min-height:60px;padding: 24px 16px 24px 16px;position:relative;}
.frontpage-worksheets-list{display:flex; flex-direction: column;width:100%;PADDING: 18px 0 0 0; }
.frontpage-worksheets-item{display:flex;padding:16px;margin: 0 0 6px 0;width:100%;box-sizing:border-box;position:relative;border: 1px solid rgba(30, 46, 87, 0.2);box-sizing: border-box;border-radius: 5px;}
.frontpage-worksheets-item .frontpage-worksheet-delete{position:Absolute;right:0px;top:0px;}
.frontpage-worksheet-title-image svg{display:block;}
.frontpage-worksheet-title{padding: 0 20px 0 12px;position:relative;flex: 1;}
.frontpage-worksheet-title h2{
  font-family: var(--brand-font, 'Roboto');
  font-style: normal;
  font-weight: normal;
  font-size: 16px;
  line-height: 24px;
  color: #1E2E57;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.frontpage-worksheets-options{position:absolute;left:12px;bottom:0;
  font-family: var(--brand-font, 'Roboto');
  font-style: normal;
  font-weight: 500;
  font-size: 11px;
  line-height: 16px;
  color: #5786FF;
}
.frontpage--worksheets-options a{
  font-family: var(--brand-font, 'Roboto');
  font-style: normal;
  font-weight: 500;
  font-size: 11px;
  line-height: 16px;
  color: #5786FF;
}
.frontpage-worksheets-options span{padding-left:16px;}
.frontpage-worksheets .btn-add-worksheet{position:absolute;display:block;left:50%;bottom:-20px;width:45px;height:45px; transform: translate(-50%, 0%)  }
.frontpage-worksheets .btn-add-worksheet a{display:block;}
.frontpage-worksheets .btn-add-worksheet svg{display:block;}

.profile-details{position:relative;display:flex;flex-direction: column;justify-content:center;width:100%;padding: 32px 33px 33px 33px;box-sizing:border-box;}
.profile-details.profile-edit{padding: 32px 16px 0 16px;max-width:768px;}
.profile-details-content{
  background: #FFFFFF;
  box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.05);
  border-radius: 20px;
  z-index:1;
  position:relative;
  padding: 0 16px 52px 16px;
  display:flex;flex-direction: column;justify-content:center;
}
.profile-details-bg{
  display:none;
  position:absolute;
  z-index:0;
  left:0;top:0;width:100%;height:50%;
  background: #51E69C;
  border-radius: 0 0 20px 20px;
}
.profile-details .profile-image{border-radius:10px;overflow:hidden;width:84px;height:84px;margin: 0 0 25px 0;padding:0;position:relative;margin-top:0px;}
.profile-details .profile-image img{width:100%;height:100%;}
.profile-details .profile-name{
  font-weight: bold;
  font-size: 16px;
  line-height: 19px;
  color: #1E2E57;
  padding: 0 0 14px 0;
}
.profile-details .profile-btn{
  display: flex;
  margin: 0 auto;

}
.profile-details .profile-btn .btn{padding: 6px 20px 6px 20px;width:auto;margin: 8px auto;}


.profile-details .profile-descr-more{text-align:center;margin: 0 auto;cursor:pointer;}
.profile-details .profile-descr-content.expanded .profile-descr-more{
  -moz-transform: scale(-1, -1);
  -webkit-transform: scale(-1, -1);
  -o-transform: scale(-1, -1);
  -ms-transform: scale(-1, -1);
  transform: scale(-1, -1);
  transition:all 0.4s linear;
}
.profile-details .profile-descr-content .profile-descr-content-more{
  transition: opacity 0.4s ease-in-out;
  opacity: 0;
  height: 0;
  overflow: hidden;
}
.profile-details .profile-descr-content.expanded .profile-descr-content-more{
  opacity: 1;
  height: auto;
}
.profile-details .profile-descr{margin: 0 auto;max-width:600px;
  font-family: var(--brand-font, 'Roboto');
  font-style: normal;
  font-weight: normal;
  font-size: 13px;
  line-height: 20px;
  text-align: center;
  color: #1E2E57;
  padding: 0 0 13px 0;
}

.profile-stats{display: flex;flex-direction:row;text-align:center; justify-content: center;padding: 40px 0 0 0;width:100%;  max-width:320px;margin: 0 auto; }
.profile-stats > div{
  flex: 1 1 auto;
  font-family: var(--brand-font, 'Roboto');
  font-style: normal;
  font-weight: normal;
  font-size: 13px;
  line-height: 20px;
  text-align: center;
  color: #4F4F4F;
}
.profile-stats .stats-count{
  font-family: var(--brand-font, 'Roboto');
  font-style: normal;
  font-weight: 500;
  font-size: 20px;
  line-height: 28px;
  text-align: center;
  color: #5243AA;
  flex: none;
  order: 1;
  align-self: center;
  flex-grow: 0;
  margin: 0px 0px;
}

#overlay{display:none;position:fixed;left:0;top:0;right:0;bottom:0;height:100%;z-index:99998;background: #73839C;mix-blend-mode: multiply;}
.loading{display:none;position:fixed;width:50px;height:50px;left:50%;z-index:99999;top:50%;margin: -25px 0 0 -25px;border-radius:10px;background:#fff url(/images/ajax-loader.gif) no-repeat center;}
.info-text{width:200px;height:150px;margin:-100px 0 0 -75px;background-position:center bottom;font-size:1.125em;padding:20px;box-sizing:border-box;}
.modal-container{display:none;position:fixed;top:0;left:0;bottom:0;right:0;z-index:99999;}
/*.modal-content{position:relative;top:50%;transform: translate(0, -50%);width:90%;max-width:800px;max-height:90%;overflow:hidden;overflow-y: auto; margin:0px auto;background:#fff;z-index:999;padding:0px;box-sizing:border-box;border: 1px solid #40BFFF;
  -webkit-box-shadow: 0 0 5px 0 rgba(0,0,0,0.25);
  box-shadow: 0 0 5px 0 rgba(0,0,0,0.25);}*/
.modal-content{position:relative;overflow:hidden;overflow-y: auto; margin:0px auto;background:#fff;z-index:999;padding:0px;}
.modal-content:after{content:"";display:block;clear:both;height:0;}

.modal-content .modal-content-message{text-align:center;}

.tui-image-editor-load-btn,
.tui-image-editor-download-btn,
.tui-image-editor-header-logo{display:none !important;}

.custom-dialog.ui-widget.info-popup{text-align:center;}
.custom-dialog.ui-widget.info-popup .modal-content{display: flex; align-items: center;justify-content: center;font-weight: bold;width:100%;height: calc(100% - 20px);}
.custom-dialog.ui-widget.ui-widget-content{border:none;}
.custom-dialog.ui-dialog{box-shadow: 0px 6.25px 20px rgba(0, 0, 0, 0.125);border-radius: 10px;z-index:99999999;}
.custom-dialog.ui-dialog > .ui-widget-header{border:none;background:none;}
.custom-dialog.ui-dialog .ui-widget-header .ui-button{border:none;background:none;}
.custom-dialog.ui-dialog .ui-dialog-titlebar-close {right: 10px;}
.custom-dialog.ui-dialog .ui-dialog-content{padding:0 20px;}
.custom-dialog.ui-dialog .ui-button .ui-icon{background:url(/images/svg/close-modal.svg) no-repeat center;}
body.cart-details .custom-dialog.ui-dialog .ui-button .ui-icon{background:url(/images/svg/close-modal-white.svg) no-repeat center;}

.evaluation-dialog.ui-dialog {padding:0;}
.evaluation-dialog.ui-dialog > .evaluation-dialog-header.ui-widget-header{height: 86px;background: #6554C0;border-radius: 10px 10px 0 0;}
.evaluation-dialog.ui-dialog  .modal-container{padding:60px 70px;width:780px;max-width:100%;box-sizing:border-box;}
.evaluation-dialog.ui-dialog .ui-dialog-title{display: flex;height:100%;align-items: center;color:#ffffff;padding-left:50px;}
.evaluation-dialog.ui-dialog .ui-button .ui-icon{background:url(/images/svg/close-modal-white.svg) no-repeat center;}

.custom-dialog.ui-dialog .ui-dialog-buttonpane.custom-buttons{border:none;}
.custom-dialog.ui-dialog h1{
  font-family: var(--brand-font, 'Roboto');
  font-style: normal;
  font-weight: 500;
  font-size: 23px;
  line-height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4F4F4F;
}
.custom-dialog.ui-dialog.confirm-dialog .modal-content div{color:#1E2E57;padding: 32px 0 45px 0;text-align:center;}
.custom-dialog.ui-dialog .ui-dialog-buttonpane.custom-buttons .ui-dialog-buttonset{display: flex; flex-direction: row-reverse ;width:100%;justify-content: space-between;padding: 0 30px 30px 30px;box-sizing:border-box;}
.custom-dialog.ui-dialog .ui-dialog-buttonpane.custom-buttons .btn{padding: 6px 12px; margin:0;font-size: 14px;line-height: 20px; }

.worsksheet-evaluation-points{display:flex;justify-content: space-between;padding: 0 0 36px 0;}
.worsksheet-evaluation-points > div{flex: 1 1 50%;}
.worsksheet-evaluation-points .show-worksheet-points{padding: 0 20px 0 0;}
.worsksheet-evaluation-points .worksheet-max-points{display:flex; justify-content: space-between;align-items: center; padding: 0 0 0 20px; }
.worsksheet-evaluation-points .worksheet-max-points span{
    position: relative;
    display: inline-block;
    font-weight: bold;
    font-size: 30px;
    line-height: 24px;
    color: #51E69C;
}

.worsksheet-evaluation-points-submit {display: flex;justify-content: space-around;align-items: center;}
.worsksheet-evaluation-points-submit .btn,
.worsksheet-evaluation-points-submit .btn.cancel{padding: 12px 16px;}
.worsksheet-evaluation-points-submit > div {padding: 0 20px;flex: 1 1 50%;}

.worsksheet-evaluation-type, .evaluation-worksheet-storage-folder{padding: 0 0 36px 0;}
.evaluation-slider-container{display:none;}
.evaluation-slider-container h3, .evaluation-worksheet-storage-folder h3{padding: 0 0 20px 0;}
.worsksheet-evaluation-type-content label{font-size: 14px;line-height: 20px;color: #1E2E57;padding-left:36px;padding-right: 20px;}
.worsksheet-evaluation-type-content{display:flex; align-items: center;padding: 20px 0 0 0; }
.worsksheet-evaluation-type-content label{}
.worsksheet-evaluation-type-content .checkmark{top:50%; transform: translate(0, -50%); }



.time-range #passed-range.ui-slider .ui-slider-range{height: 4px;top: 0px;}
.time-range #grade-range.ui-slider .ui-slider-range{background:#FF768D;height: 4px;top: 0px;}
.time-range #grade-range.ui-slider .ui-slider-range{background:rgb(153,153,153,0.2);height: 4px;top: 0px;}

.time-range #passed-range.ui-slider-horizontal{background:#56D1A8;}

.time-range #passed-range.slider-range .slider-time-wrap{color:#fff;height: 26px;line-height: 16px;background: url(/images/svg/worksheet/tools/slider-time-blue.svg) no-repeat center;}
.time-range #learning-levels-range.slider-range .slider-time-wrap{margin-left: -6px;color:#fff;height: 26px;line-height: 16px;background: url(/images/svg/worksheet/tools/slider-time-blue.svg) no-repeat center;}
.time-range #passed-range.slider-range .slider-time-wrap{margin-left: -6px;color:#fff;height: 26px;line-height: 16px;background: url(/images/svg/worksheet/tools/slider-time-blue.svg) no-repeat center;}
.time-range #grade-range.slider-range .slider-time-wrap{margin-left: -6px;color:#fff;height: 26px;line-height: 16px;background: url(/images/svg/worksheet/tools/slider-time-blue.svg) no-repeat center;}

.time-range .slider-range.ui-slider .ui-slider-range.begin{background:#FFD694;}
.time-range .slider-range.ui-slider .ui-slider-range.continue{background:#FF768D;}
.time-range .slider-range.ui-slider .ui-slider-range.teached{background:#56D1A8;}
.time-range .slider-range.ui-slider .ui-slider-range.mastered{background:#7DD0F4;}


.loading {
	opacity: .1;
	cursor: wait
}
#loading-html{display:none;}
.loading-wait{position:absolute;left:0;top:0;right:0;bottom:0;text-align:center;cursor: wait;z-index:3;}
.loading-inner{
    width:120px;
    height:140px;
    padding:30px;
    position:absolute;
    left:50%;
    top:50%;
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%) ;
    bottom:0;border-radius:20px;/*background:#E1E5EA;*/
    color: #000000;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.lds-ring {
  display: inline-block;
  position: relative;
  width: 120px;
  height: 120px;
}
.lds-ring div {
  box-sizing: border-box;
  display: block;
  position: absolute;
  width: 108px;
  height: 108px;
  margin: 4px;
  border: 4px solid #da3b33;
  border-radius: 50%;
  animation: lds-ring 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
  border-color: #da3b33 transparent transparent transparent;
  z-index:2;
}
.lds-ring div:nth-child(1) {
  animation-delay: -0.45s;
}
.lds-ring div:nth-child(2) {
  animation-delay: -0.3s;
}
.lds-ring div:nth-child(3) {
  animation-delay: -0.15s;
}
.lds-ring div.bg {
  box-sizing: border-box;
  display: block;
  position: absolute;
  width: 108px;
  height: 108px;
  margin: 4px;
  border: 4px solid #EBECF0;
  border-radius: 50%;
  z-index:1;
}
.loading-inner .loading-logo {
    box-sizing: border-box;
    display: block;
    position: absolute;
    width: 120px;
    height: 120px;
    margin: 0px;
    padding:20px;
    z-index:1;
    display: flex;
    justify-content: center;
    align-items: center;
}
@keyframes lds-ring {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}


/* The container must be positioned relative: */
.custom-select {
  position: relative;
}
.design-toolbar .design-toolbar-properties .question-title-input .select-row-col .custom-select{width:80px;}

.custom-select select {
  display: none; /*hide original SELECT element: */
}

.select-selected {
  background: #F4F5F7;
  border-radius: 4px;
}

/* Style the arrow inside the select element: */
.select-selected:after {
  /*position: absolute;
  content: "";
  top: 14px;
  right: 10px;
  width: 0;
  height: 0;
  border: 6px solid transparent;
  border-color: #fff transparent transparent transparent;*/
    content: "";
    position: absolute;
    top: 10px;
    right: 10px;
    width: 2px;
    height: 2px;
    border: solid rgba(30, 46, 87, 0.8);;
    border-width: 0 2px 2px 0;
    display: inline-block;
    padding: 3px;
    transform: rotate(45deg);
    -webkit-transform: rotate(45deg);

}

/* Point the arrow upwards when the select box is open (active): */
.select-selected.select-arrow-active:after {
  /*border-color: transparent transparent #fff transparent;
  top: 7px;*/
    transform: rotate(225deg);
    -webkit-transform: rotate(225deg);
    top:14px;
}

/* style the items (options), including the selected item: */
.select-items div,.select-selected {
  color: rgba(30, 46, 87, 0.8);
  padding: 8px 32px 8px 16px;
  cursor: pointer;
}

/* Style items (options): */
.select-items {
  position: absolute;
  background: #FFFFFF;
  box-shadow: 8px 8px 20px rgba(201, 199, 199, 0.19);
  border-radius: 4px;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  z-index: 99;
  max-height:200px;
  overflow-y:auto;
  color: #1E2E57;
}

/* Hide the items when the select box is closed: */
.select-hide {
  display: none;
}

.select-items div:hover, .same-as-selected {
  color: #5786FF;
}

.custom-select .chosen-container-single .chosen-single,
.custom-select .chosen-container-single.chosen-container-active .chosen-single{
  background: #fff;
  border-radius: 3px;
  border:1px solid #C3CBD5;
  box-shadow: none;
  height:40px;

}

.custom-select .chosen-container {height:40px;font-size: 14px; color: #15191E;}
.custom-select .chosen-container .chosen-drop{
  margin-top:10px;
  background:none;border:none;border-radius:0;
}
.custom-select .chosen-container-single .chosen-search {background:#fff;}
.custom-select .chosen-container-single .chosen-search input[type=text]{font-size:16px;}
.chosen-container-single .chosen-single span{color: #15191E;line-height:40px;}
.custom-select .chosen-container .chosen-results{
  background: #FFFFFF;
  box-shadow: 8px 8px 20px rgba(201, 199, 199, 0.19);
  border-radius: 4px;
  margin: 0;
}
.custom-select .chosen-container .chosen-results li{padding: 8px 20px;background:none;font-family: var(--brand-font, 'Roboto');
  font-size: 14px;
  color: #15191E;
}
.custom-select .chosen-container .chosen-results li.highlighted{color:#5786FF;background:none;}

.custom-select .chosen-container-single .chosen-single div b{background:none !important;}
.custom-select .chosen-container-single .chosen-single div b:after{
    content: "";
    position: absolute;
    top: 12px;
    right: 10px;
    width: 2px;
    height: 2px;
    border: solid rgba(30, 46, 87, 0.8);;
    border-width: 0 2px 2px 0;
    display: inline-block;
    padding: 3px;
    transform: rotate(45deg);
    -webkit-transform: rotate(45deg);
    background:none;
}
.custom-select .chosen-container-active.chosen-with-drop .chosen-single div b:after{
    transform: rotate(225deg);
    -webkit-transform: rotate(225deg);
    top:14px;
}

.main-content-body{padding:0px 0px 0px 55px;}
body.shop .main-content-body{padding:0px 0px 80px 0px;}
body.cart-details .main-content-body{padding:42px 0px 27px 0px;}
body.cart-details .main-content-body aside{padding:47px 62px 50px 50px;box-sizing:border-box;border-left: 1px solid #858C94;}

.cart-payment-options{display: flex;align-items: center;justify-content: center; flex-direction: column; height:100%; }
.cart-payment-options .btn{
  background: #40BFFF;
  border-radius: 8px;
  width:100%;max-width:353px;
}
.cart-payment-options h1{
  font-family: var(--brand-font, 'Roboto');
  font-style: normal;
  font-weight: 500;
  font-size: 44px;
  line-height: 48px;
  display: flex;
  align-items: flex-end;
  text-align: center;
  color: #1E2E57;
  padding: 0 0 80px 0;
  max-width: 400px;
}
.cart-items h2{
  font-family: var(--brand-font, 'Roboto');
  font-style: normal;
  font-weight: 500;
  font-size: 20px;
  line-height: 24px;
  display: flex;
  align-items: flex-end;
  text-align: center;
  color: #1E2E57;
  padding: 0 0 35px 0;
}
body.cart-details .worskheets-large-list-item {width:100%;margin: 0 0 10px 0;}
body.cart-details .worskheets-large-list-item-details,
body.news .worskheets-large-list-item-details {padding: 7px 10px 0px 10px;}
body.cart-details .worskheets-large-list-item-details h2{padding: 0 0 17px 0;}
body.cart-details .worskheets-large-list-item-details h2 a {
  font-family: var(--brand-font, 'Roboto');
  font-style: normal;
  font-weight: normal;
  font-size: 16px;
  line-height: 24px;
  color: #1E2E57;
  text-align: left;
  -webkit-line-clamp: 1;
  height: 24px;
  padding: 0 40px 0 0;
}
body.cart-details .worskheets-large-list-item-image img{width: 69px;height:90px;}
body.cart-details .worskheets-large-list-item-subject{padding:0;}
body.cart-details .worskheets-price{position:absolute;right:18px;bottom:0px;}
 body.news .worskheets-price{position:absolute;right:18px;bottom:7px;}
body.cart-details .delete-from-cart{position: absolute;right:9px;top:7px;cursor:pointer;}
body.news .worskheets-large-list-item-subject{position: absolute;left:9px;bottom:7px;padding:0;}
body.cart-details .worskheets-large-list-item-topic{
  font-family: Source Sans Pro;
  font-style: normal;
  font-weight: 600;
  font-size: 13px;
  line-height: 20px;
  color: #1E2E57;
  padding:0;
}

.cart-total-sum{
  background: #FFFFFF;
  /* Neutral/Light */
  border: 1px solid #EBF0FF;
  box-sizing: border-box;
  border-radius: 5px;
  display: flex;
  padding: 40px 16px 14px 16px;
  align-items: center;
  justify-content: space-between;
  font-weight: 500;
  font-size: 11px;
  line-height: 16px;
  color: #1E2E57;
  position:relative;
  margin-top:33px;
}
.cart-total-sum:before{
  content:"";
  position: absolute;
  height: 0px;
  left: 16px;
  right: 16px;
  top: 23px;
  border: 1px dashed #EBF0FF;
}
.cart-total-sum span{
  font-weight: bold;
  font-size: 21px;
  line-height: 32px;
  text-align: right;
  color: #51E69C;
}

body.cart-details .main-content-body aside {flex: 0 0 440px;background: none;}

/*.frontpage-worksheets{padding:0px 0px 80px 0px;}
.frontpage-worksheets h3{padding:10px 20px}*/

.news-details{padding: 0 100px 0 35px;box-sizing: border-box;}
.news-details p{padding: 0 0px 30px 0px;box-sizing: border-box;}
.news-details .news-date{
  padding: 0 0px 40px 0px;
  font-size: 16px;
  line-height: 19px;
  color: #1E2E57;
}
.news-details h2{
  font-weight: 900;
  font-size: 20px;
  line-height: 116%;
  color: #1E2E57;
  padding: 20px 0 10px 0;
}
.news-details .news-body{
  font-size: 16px;
  line-height: 19px;
  color: #1E2E57;
}

.frontpage-portfolio-welcome{
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  align-content: center;

}
.frontpage-portfolio-welcome-block{
  background: #FFFFFF;
  border: 1px solid #FFFFFF;
  box-sizing: border-box;
  box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.07);
  border-radius: 10px;
  margin: 21px 9px;
  width: calc(50% - 18px);
  max-width: 411px;
  padding: 35px 62px 13px 62px;
  display: flex;
  flex-direction: column;
}
.frontpage-portfolio-welcome-block .menu-name{
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 10px;
  background: #E5F8FC;
  border-radius: 10px;
  flex: none;
  order: 0;
  flex-grow: 0;
  margin: 13px 0px;
  font-weight: bold;
}
.frontpage-portfolio-welcome-block .menu-name svg{padding-right: 13px;}
.frontpage-portfolio-welcome-block .menu-name svg path{fill:#230B34;fill-opacity: 1 !important;}
.frontpage-portfolio-welcome-block .menu-descr{
  font-family: var(--brand-font, 'Roboto');
  font-style: normal;
  font-weight: normal;
  font-size: 16px;
  line-height: 140%;
  text-align: center;
  color: #1E2E57;
  margin: 13px 0px;
}
.frontpage-portfolio-welcome-block a.btn{border: 1px solid #789DED;
  font-size: 14px;
  line-height: 130%;
  display: flex;
  align-items: center;
  text-align: center;
  color: #789DED;
  padding: 11px 16px;
}
.frontpage-portfolio-welcome-block .menu-btn{display: flex;align-items:center; justify-content:center;margin-top:auto;}
.frontpage-portfolio-welcome-block a.btn:hover{border-width:1px;}


.portfolio{width:100%;max-width:980px;}
.portfolio h2{
  font-size: 22px;
  line-height: 120%;
  letter-spacing: -0.01em;
  color: #293854;
  padding: 0 0 25px 0;
}
.page-worksheets .portfolio h2{padding: 25px 0;}
.portfolio h3{
  font-size: 16px;
  line-height: 120%;
  letter-spacing: -0.01em;
  color: #293854;
  padding: 0 0 25px 0;
}
.active-students{
  background: #FFFFFF;
  /* Fluffy / Elevation 2 */
  box-shadow: 0px 6.25px 20px rgba(0, 0, 0, 0.125);
  border-radius: 10px;
  padding: 20px;
  box-sizing: border-box;
  width:100%;
  margin: 0 0 40px 0;
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  justify-content: flex-start;
}
.inactive-students{
  padding: 20px;
  box-sizing: border-box;
  width:100%;
  margin: 0 0 40px 0;
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  justify-content: flex-start;
}
.active-students .stdent-profile-item, .inactive-students .stdent-profile-item{
  padding: 10px 10px;
  width: 12.5%;
  box-sizing: border-box;
}
.active-students .stdent-profile-item a, .inactive-students .stdent-profile-item a{
  display: block;
  position:relative;
}
.active-students .stdent-profile-item a .w-evaluated{position:absolute;right:-8px;top:-4px;width:16px;height:16px;border-radius:50%;background:rgb(81, 231, 157);}
.active-students .stdent-profile-item a .image, .inactive-students .stdent-profile-item a .image{
  display: block;
}
.active-students .stdent-profile-item a img, .inactive-students .stdent-profile-item a img{
  display: block;
}
.active-students .stdent-profile-item, .inactive-students .stdent-profile-item{

}

.active-students .stdent-profile-item.user-not-submited{opacity:0.6;}

.design-objects-content .portfolio{padding: 10px 20px;box-sizing:border-box;}
.design-objects-content .active-students .stdent-profile-item,
.design-objects-content .inactive-students .stdent-profile-item{width:25%;padding:5px;font-size:13px;box-sizing:border-box;}
.inactive-students .stdent-profile-item .container-custom-checkbox{position:absolute;left:16px;top:13px;}
.portfolio .portfolio-data-btn{display: flex;justify-content: space-evenly;}
.portfolio .portfolio-data-btn a.btn{padding: 12px 16px;margin:0;}
.active-students .stdent-profile-item .image img, .inactive-students .stdent-profile-item .image  img{
  border-radius:10px;overflow: hidden;
}
.active-students .stdent-profile-item .image img,
.inactive-students .stdent-profile-item .image  img{
  width:100%;
  display: block;
  padding: 4px 0;
}
.active-students .stdent-profile-item .image svg,
.inactive-students .stdent-profile-item .image  svg{
  width:100%;
  display: block;
  padding: 4px 0;
  height: auto;
}

.active-students .stdent-profile-item .name, .inactive-students .stdent-profile-item .name{
  color: #1E2E57;
  text-align:center;
}


.page-portfolio .main-content{
  background: #F6F9FD;
}
.profile-portfolio-details{padding: 48px;}

.profile-portfolio-details .form-details{display: none;}
.portfolio-path{display: flex;align-items: center;
  font-family: Ubuntu;
  font-style: normal;
  font-weight: 500;
  font-size: 13px;
  line-height: 22px;
  color: #585858;
  padding: 0px 0 22px 0;
}
.student .portfolio-path{display: none;}
.student .profile-settings .portfolio-path{display: flex;}
.portfolio-path a{display: block;display: flex;align-items: center;}
.portfolio-path svg{display: block;}

.profile-portfolio-header{
  display: flex;
  align-items: flex-end;
  position:relative;
  padding: 65px 0 0 41px;
  box-sizing: border-box;
}

.profile-portfolio-header > div{padding-right: 15px;z-index:1; }
.profile-portfolio-header .profile-portfolio-image{width:125px;height:125px;}
.profile-portfolio-header .profile-portfolio-image svg,
.profile-portfolio-header .profile-portfolio-image img{width:125px;height:125px;border-radius:10px;}
.profile-portfolio-header .profile-portfolio-header-bg{
  border-radius: 20px;
  position:absolute;left:0;top:0;width:100%;
  overflow:hidden;
  z-index:0;
}
.profile-portfolio-header .profile-portfolio-header-bg img{border-radius: 20px;}
.profile-portfolio-descr-content{
  background: #FFFFFF;
  border-radius: 10px;
  display: flex;
  padding: 20px;
  order: 0;
  flex-grow: 0;
  margin: 34px 0px;
  min-height: 120px;
}
.profile-portfolio-descr-content > div{
  flex-grow: 1;
  flex-basis: 0;
}
.profile-portfolio-descr-content b{padding: 0 0 0px 0;display: block;}
.profile-portfolio-name{color: #1E2E57;font-weight: bold;}

.profile-portfolio-btn{padding: 0px 12px;display: flex;}
.profile-portfolio-btn a{margin:0 20px;padding: 8px 16px;background:#789DED;
  font-weight: 500;
  font-size: 14px;
}
.profile-portfolio-btn a.cancel{
  border: 1px solid #789DED;
  font-size: 14px;
  line-height: 130%;
  display: flex;
  align-items: center;
  text-align: center;
  color: #789DED;
  padding: 11px 16px;
  flex-direction: row;
}
.profile-portfolio-btn a.cancel span{padding: 0 0 0 8px;display: block;height:20px;}
.profile-portfolio-btn a.cancel span svg{display: block}

.profile-portfolio-btn a.cancel:hover{
  background: #789DED;
  color:#fff;
}
.profile-portfolio-btn a.cancel:hover svg path{fill:#fff;}

.profile-portfolio-btn a.cancel:hover{padding: 11px 16px;border-width:1px;}

.mobile-view .profile-portfolio-details{padding: 0;}
.mobile-view.student .portfolio-path {display: none;}
.mobile-view .profile-portfolio-header {position:relative;z-index:2;padding: 20px 0 0 0; justify-content: center;align-items: center; flex-direction: column;}
.mobile-view .profile-portfolio-descr-content {position:relative;z-index:1;flex-direction: column;padding-top:200px;margin: -180px 33px 56px 33px;
  box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.05);
  border-radius: 20px;
}
.mobile-view .profile-portfolio-descr-content > div {padding-bottom: 30px;}


.mobile-view .profile-portfolio-header .profile-portfolio-header-bg{display: none;}

.mobile-view .profile-portfolio-header-bg-mobile{
  background: url(/images/userfiles/foni/profile-mobile-bg.jpg) no-repeat;
  background-size: cover;
  background-position: bottom center;
  height: 200px;
  width:100%;
  z-index:0;
  position: absolute;
}
.mobile-view .profile-portfolio-header > div{padding: 10px 0;}
.mobile-view .profile-portfolio-header .profile-portfolio-name br{content:"";}
.mobile-view .profile-portfolio-header .profile-portfolio-name br:after{content:" ";}

.mobile-view .left-navigation ul li a .menu-name .unread{display: none;}

.mobile-view .left-navigation ul li a .menu-name{
  justify-content: center;
  align-content: center;
  align-items: center;
}

.matjax-keyboard-input .tabs-nav{display: flex;padding: 0 0 16px 0;    }
.matjax-keyboard-input .tabs-nav li{display: flex;margin: 4px 6px;padding: 8px 12px;border-radius:10px;  background: rgba(30, 46, 87, 0.1);}
.matjax-keyboard-input .tabs-nav li.tab-active{font-weight: bold;}

/* formatedtext */
.formatedtext{font-size:16px;line-height:28px;padding:0 10px;position:relative;}
.formatedtext p{padding: 10px 0px;}
.formatedtext hr{height: 1px;width:100%;opacity: 0.1;background-color: #313338;}
.formatedtext a{}
.formatedtext a:hover{}
.formatedtext ul{padding: 10px 0px;list-style-position: outside;}
.formatedtext ul li,.formatedtext ol li{padding:0px 0 0px 23px;list-style-position: inside;position:relative;}
.formatedtext ul li li,.formatedtext ol li li{padding:0px 0 0px 20px;list-style-position: inside;}
.formatedtext ul li:before {
    content: "";
    position:absolute;
    left: 0px;
    top: 12px;
    padding:0px;
    background: #313338;
    display:inline-block;
    width:6px;height:6px;border-radius:6px;
}
.formatedtext ul li li:before {
    content: "";
    position:absolute;
    left: 4px;
    top: 12px;
    padding:0px;
    background: #67696e;
    display:inline-block;
    width:4px;height:4px;border-radius:4px;
}

.formatedtext ol {margin: 16px 0 16px 60px;}
.formatedtext ol li{background:none;padding:5px 0 5px 5px;}

.formatedtext table{width:100%;border-collapse: collapse;border:none;border-spacing: 0px 2px;margin:0px 0;}
.formatedtext table tr td, .formatedtext table tr th{padding:11px 16px 13px 16px;}
.formatedtext table tr td{border-bottom:1px solid #dfe0de; vertical-align: top;}
.formatedtext table tr td p{padding:0;margin:0;}
.formatedtext table thead{margin: 2px 0;}
.formatedtext table thead tr th{position:relative;color:#313338;text-align: left;background: #CCCCCC}
.formatedtext table thead tr th p{margin:0;padding:0;}
.formatedtext table tbody tr:nth-child(2n+1) td{background:#f0f1f2;}


.formatedtext table.topography-details tbody tr:nth-child(2n+1) td{background:none;}

.formatedtext table.topography-list tbody tr:nth-child(2n+1) td{background:none;}
.formatedtext table.topography-list > tbody > tr.topography-odd td{background:#f0f1f2;}

.formatedtext .tableOverflow{background:#000000;background: rgba(0,0,0,0.7);z-index:2;}
.formatedtext .tableOverflow > div{position:absolute;left:0;top:0;width:100%;height:100%;z-index:99;background-color:#fff;background:url(/images/svg/hand-swipe.svg?v=1) 80px 80px;background-repeat: no-repeat; background-size: 60px;}
.formatedtext .tableOverflow, .contact-details .tableOverflow{position:relative;}
.formatedtext .tableOverflow table tbody tr:nth-child(2n+1) td{background:none;}
.formatedtext .tableOverflow table tr td{border:none;}
.formatedtext .tableOverflow img{display:none;}

.formatedtext blockquote{position:relative;margin:20px 0;border-left:3px solid #e10028;font-size:2.000em;line-height: 36px;padding:0px 0px 0px 40px;box-sizing:border-box;}
.formatedtext blockquote p{}
.formatedtext blockquote a{}
.formatedtext blockquote a:hover{}

.formatedtext ul.doc-list{margin:23px 0 43px 0;}
.formatedtext ul.doc-list li:first-child{border-top:1px solid #dfe0de;}
.formatedtext ul.doc-list li{list-style-type:none;padding:0;border-bottom:1px solid #dfe0de;}
.formatedtext ul.doc-list:not(.audio-list) li a{display:block;padding:9px 40px 9px 0;background:url('/images/svg/doc.svg') no-repeat;background-position: right 13px center;}
.formatedtext ul.doc-list li:before{background:none;}
.formatedtext ul.doc-list.audio-list li:first-child{border:none;}
.formatedtext ul.doc-list.audio-list li{border:none;background:none;padding-right:0;}
.formatedtext ul.doc-list li.doc-list-heading{border-top:none;}
.formatedtext h4{margin: 39px 0 0 0;}

.formatedtext .videoWrapper {
	position: relative;
	padding-bottom: 56.25%; /* 16:9 */
	/*padding-top: 25px;*/
	height: 0;
    overflow:hidden;
    max-width:100%;
}
.formatedtext .videoWrapper iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

.font-size-container{display: flex;padding: 20px;}
.font-size-container .larger, .font-size-container .smaller{
  font-size: 28px;
  display: flex;
  text-align: center;
  color: #1E2E57;
}
.font-size-container .smaller{font-size:13px;padding-top:10px;}
.font-size-container a{position:relative;padding: 30px 10px 0 10px;}
.font-size-container a:before{content:"";position:absolute;top:16px;left:50%; transform: translateX(-50%); width:4px;border-radius: 50%;height:4px;background: #1E2E57;}

.font-size-container a.selected:before{
  width: 22px;
  height: 22px;
  background: #7480FF;
  top:7px;
}

.contrast-container{display: flex;}
.contrast-container span{font-weight: 900;cursor: pointer;padding: 5px 0;font-size:35px;line-height:35px;text-align:center;margin:20px;width:45px;box-sizing: border-box;}
.contrast-container span.black{background: #1E2E57;border-radius:50%;color:#fff;}


.contrast-black-white-class{background:#000 !important;color:#fff !important;border-color:#fff !important;}
.contrast-black-yelow-class{background:#000 !important;color:#CCF300 !important;border-color:#CCF300 !important;}
.contrast-yelow-black-class{background:#CCF300 !important;color:#000 !important;border-color:#000 !important;}

.profile-details.profile-settings-list{max-width:100%;width:100%;justify-content: flex-start;}
.profile-settings-list ul li{margin: 11px 0;}
.profile-settings-list ul li.spacer{display: block;padding: 15px 0;}
.profile-settings-list ul li a{
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.notifications-list ul li{display: flex; align-items: center; justify-content: space-between;}
.notifications-list ul li span, .notifications-list ul li svg{display: block;}

.profile-settings-content{display: flex;}

.profile-settings-content ul{flex: 1 1 30%;}
.profile-settings-content .profile-settings-details{flex: 1 1 70%;padding: 0 40px 0 170px; box-sizing: border-box;}

.profile-settings-content .profile-settings-details h3{padding: 0 0 30px 0;}

.mobile-view .profile-settings-content ul{flex: 1 1 100%;}
.mobile-view .profile-settings-details{position:fixed;width:100%;height: calc(100% - 60px);left:0;top:60px;right:0;bottom:0;
  flex: 1 1 100%;
  padding: 0 0 0 0px;
  box-sizing: border-box;
  display: none;
  background:#fff;
  z-index:999;
  padding: 20px;
  box-sizing: border-box;
  overflow-y: auto;
}
.mobile-view.show-profile-settings-details .profile-settings-details{display: block;}


.submenublocks.dropdown-buj li a span{transform: rotate(90deg);}
.dropdown-content{display: none;}


.delete-profile-btn .btn{color: #FF5630;background: #F4F6F9;text-align: left;padding: 12px 16px;font-weight: normal;}
.delete-profile-btn .btn:hover{color:#fff;}

.delete-profile-info{
  font-size: 11px;
  line-height: 16px;
  color: rgba(30, 46, 87, 0.4);
}

.review-content .btn-container{display: flex;margin: 0 auto;}
.review-content .btn{margin: 0 auto;padding: 12px 16px;}

.review-content .formatedtext{padding: 20px 0;font-size: 13px;}

.article{
  display: flex;
  flex-direction: column;
  font-size: 13px;
  line-height: 20px;
}
.article h2{
  font-weight: 500;
  font-size: 23px;
  line-height: 36px;
  padding: 46px 0 13px 0;
}
.article .formatedtext{padding: 0;}
.article .formatedtext .btn-edit{display: none;}

.profile-settings-details .article h2{padding: 0 0 13px 0;}


#ui-datepicker-div{
  z-index: 999999999 !important;
}

.fc-widget-small {
  right: 15px !important;
  bottom: 100px !important;
}

#readspeaker_button1{position:absolute;left:0;top:0;z-index:999999;display:none;}

.readspeaker-btn{position:absolute;right:15px;bottom:180px;cursor:pointer;z-index:999999;}

@media (max-width: 1300px) {
.design-side{/*height:100%;*//*padding-top:54px;padding-bottom:60px;*/box-sizing:border-box;}
.design-content{height: calc(100% - 0px);}

.design-wrap{padding:0;}

}
@media (max-width: 1024px) {
.wrap-content.worksheet-content{/*overflow:hidden;min-height: calc(100% - 60px);padding-top:54px;*/bottom:60px;}
.footer-worksheet{height:60px;position:fixed;bottom:0;z-index:2;}
.footer-pages-tools-block a{height:24px;width:24px;padding:2px;}
.footer-pages-navigation-pages{height: 48px; width: calc(100% - 114px);}
.footer-pages-navigation-pages .footer-pages-navigation-pages-content .footer-page-item{width:22px;font-size:11px;}
.footer-pages-navigation-arrows{flex: 0 0 48px;}
.footer-pages-tools{flex: 0 0 100px;}
.navigation-content.navigation-worksheet-tools{bottom:60px;}
}

@media (max-width: 980px) {
.main-content-body{display:block;height:auto;}
.main-content-body aside{display:block;background: #FAFBFC;}
.main-content-body .main-content-sections{display:block;}

body.shop .worskheets-large-list-item{width: calc(50% - 20px);}

}
@media (max-width: 768px) {

.main-content.worksheet{padding-left:0px;}

.wrap-content{padding: 0 0 80px 0;}
.wrap-content.worksheet-content{padding: 0;}
.worskheets-large-list-item {
    width: calc(100% - 20px);
}

.footer-info{padding-bottom:50px;}

.navigation-content.navigation-worksheet-tools{bottom:60px;left:auto;}


.evaluation-dialog.ui-dialog .modal-container {
    padding: 10px 10px;
    width: 780px;
    max-width: 100%;
}
.worsksheet-evaluation-points {
    display: flex;
    flex-direction: column;
    padding: 0 0 36px 0;
}
.worsksheet-evaluation-type-content{flex-direction: column; justify-content: flex-start; }
.worsksheet-evaluation-type-content label {
    flex: 0 0 100%;
}

.shop .recent-worksheets{display:none;}

}
@media (max-width: 768px) {




.footer-wrap{display:hidden;}
.header-back-btn-show.mobile-view  .footer-wrap{display:none;}
.profile-details-bg{display:block;}
.profile-details .profile-image{margin-top:-42px;}

.header-wrap{background: #51E69C;position:relative;touch-action: none;height:176px;transition: height 0.4s linear;}
.header-wrap.collapsed{}
.header-wrap.header-wrap-worksheet{height:54px;position:fixed;top:0;left:0;z-index:2;}
.header-wrap.header-wrap-worksheet .header{padding: 0 16px;box-sizing:border-box;margin: 0 auto;display:block;height: 54px;overflow:hidden;}

.header-wrap.collapsed .header-profile{}
.wrap-content.profile .header-wrap.collapsed .header-profile{display:none;}
.wrap-content.profile .header-wrap.collapsed .header-profile-footer{display:none;}
.wrap-content.profile .header-wrap{height:60px;}
.wrap-content.profile .header-tools > div{display:none;}
.wrap-content.profile .header-tools .header-back-btn{display:none;justify-content: flex-start;}
.header-back-btn-show .wrap-content.profile .header-tools .header-back-btn{display: flex;}

.header-profile-expanded .profile-details .profile-image{margin: 0;}
.header-back-btn-show .profile-details .profile-edit-top{display:flex;}
.header-back-btn-show .profile-details .profile-edit-top .profile-name{padding: 0 0 0 18px;}
.wrap-content.profile .header-tools :last-child{justify-content: flex-start; align-items: flex-start;text-align:left;}

.header-wrap.collapsed .header-profile-footer{/*height:0;*/overflow:hidden;}
.header-wrap .header-tools .header-profile-image{display:none;}
.header-wrap.collapsed .header-tools .header-profile-image{display:block;}
.header-tools-profile{display:block;width:100%;padding: 0 20px;box-sizing: border-box;}
.header-tools{display:flex;height:60px;align-content: center; align-items: center;justify-content: flex-end; flex-direction: row; }
.header-tools :last-child{justify-content: flex-end; align-items: flex-end;text-align:right; }
.header-tools > * {flex: 0 0 auto;padding:0;}
.header-profile{display: flex;height:116px;}
.header-profile{display: flex;position:relative;z-index:1;}

.header-tools .switch-pages-profile-btn{display: flex;align-items: center;}
.header-tools .switch-pages-profile-btn .switch-pages{padding: 0 20px;}

.header-profile-expanded .header-wrap{height:auto;}
.header-profile-expanded .header-wrap .header-profile-footer{height: calc(100% - 60px);border-radius:0;box-sizing:border-box;}

.header-profile-image{width:85px;height:85px;padding: 10px 23px 0 0;}
.header-profile-hello{
    font-family: Ubuntu;
    font-style: normal;
    font-weight: 300;
    font-size: 24px;
    line-height: 105%;
    color: #1E2E57;
    padding:10px 0 0 0;
    display:none;
    display:block;
    width:100%;
    width: calc(100% - 95px)
}
.header-profile-hello .header-profile-hello-name{text-overflow: ellipsis;overflow: hidden;font-size:22px;height:25px;}
.header-profile-hello b{font-weight:400; }
.header-profile-hello span{
  display:block;
  font-family: Ubuntu;
  font-style: normal;
  font-weight: 300;
  font-size: 16px;
  line-height: 105%;
  color: #1E2E57;
  padding: 6px 0 0 0;
}
.header-profile-footer{display:block;transition: height 0.4s linear;background:#fff;border-radius: 0 40px 0 0 ;height:40px;z-index:0;position:absolute;left:0;bottom:0;right:0;}


.header-profile .switch-pages{display: none;}


.header-wrap.header-wrap-worksheet, .header.header-worksheet{width:100%;}
.header-worksheet-tools-block .header-worksheet-home,
.header-worksheet-tools-block .header-worksheet-save{flex: 0 0 auto;width: auto;}
.header-worksheet-tools-block{justify-content: flex-start;}
.worksheet-last-saved{display:none;}


.main-content-body{padding:0px 20px 80px 20px;box-sizing:border-box;}
.header-tools-nav{display:none;}


.navigation-content .navigation-content-switch{display:none;}
.left-navigation{padding:0;}
.left-navigation ul ul, .left-navigation ul li a div.drop-down{display:none;}
.left-navigation ul{display:flex;width:100%; flex-direction: row; flex-grow: 1;  }
.left-navigation ul li{flex: 1;  }
.left-navigation ul li a{padding:0; flex-direction: column;
  font-size: 11px;
  line-height: 100%;
  text-align: center;
  letter-spacing: 0.2px;
  color: #FFFFFF;
  height:55px;
  align-content: center;
  justify-content: center;
}
.left-navigation ul li a div{display:block;padding:0;height:auto;}
.left-navigation ul li a .menu-name{}

/* Šī bloka noteikumi ir domāti vietnes kreisajai navigācijai mobilajā apakšējā
   joslā (ikona virs nosaukuma). Dizaina rīka ciļņu saraksti ir TIE PAŠI
   .left-navigation ul li a, tāpēc flex-direction:column tiem sadalīja
   nosaukumu atsevišķās rindās: <a> ir display:flex, un "Pexels results (" +
   <span>0</span> + ")" tur ir TRĪS anonīmi flex elementi, kas kolonnā krita
   katrs savā rindā. Ciļņu sarakstiem atgriežam rindu. */
.left-navigation ul.tabs-nav li a,
.left-navigation ul.tabs-library li a{
  flex-direction: row;
}
/* Paddings ir content-box, tāpēc bez šī saraksts iznāk par 20px platāks nekā
   panelis un rada horizontālo skrollu. */
.left-navigation ul.tabs-nav,
.left-navigation ul.tabs-library{
  box-sizing: border-box;
}

/* Tā pati noplūde: Design Review pārbaudes saraksts atrodas TAJĀ PAŠĀ
   <nav class="left-navigation">, tāpēc šī bloka ul{flex-direction:row} +
   li{flex:1} to mobilajā sadalīja trīs šaurās kolonnās. Saraksts ir saraksts -
   viens punkts vienā rindā. */
.left-navigation .save-action-content ul{
  display: block;
  flex-grow: 0;
}
.left-navigation .save-action-content ul li{
  flex: none;
  display: flex;
  align-items: flex-start;
}

.navigation-content.collapsed, .navigation-content{width:100%;height:55px;min-height:55px;}

.navigation-content.collapsed.navigation-worksheet-tools,
.navigation-content.navigation-worksheet-tools{height:auto;max-width:100%;}

.navigation-content {
    position: fixed;
    left: 0;
    top: auto;
    bottom:0;
    z-index: 2;
}

.mobile-view .frontpage-portfolio-welcome-block{width:100%;max-width:100%;padding:0;}


}
@media (max-width: 640px) {

.design-side{left:0;}

.design-objects{}
.design-objects.expanded{}
.design-objects.expanded .design-objects-content{border-radius: 0 8px 8px 0; max-height:400px;overflow-y:auto;}
.design-objects .design-objects-btn{display:block;}
/*.design-side .design-page{height: calc(100vh - 32px - 56px);}
.design-side .design-page{height: calc(100vh - 32px);}*/

.main-content-body .worksheet-storage {
    display: flex;
    flex-direction: column;
    height:auto;
}
.main-content-body .worksheet-storage .storage-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align:center;
    padding: 0 0px 0 0;
}
.main-content-body .worksheet-storage .storage-info-descr {
    padding: 0 0 0 0px;
    display: flex;
    height: 60px;
}
.storage-worskheets, .journal-students-list{padding:0px;}
.storage-worskheets .worskheets-list-items {
}
.storage-worskheets .worskheets-list-items .storage-worskheets-item{width:calc(33.33% - 18px);}

.shop-subjects .shop-subject-items .shop-subject-item{width: calc(50% - 18px);}

.frontpage-welcome-wrap{flex-direction: column;}

.frontpage-welcome{display: block;    padding: 20px 10px 20px 0;margin: 20px 10px 20px 10px;}
.frontpage-welcome:after,
.frontpage-welcome .btn:after{clear:both;float:none;content:"";display: block;}
.frontpage-welcome .frontpage-welcome-image{float:left;width:40%;}

.worskheets-large-list{padding: 40px 0;}

.shop .worskheets-large-list{padding: 40px 20px;}
.frontpage-worksheets {
    min-height: 60px;
    padding: 24px 0px 24px 0px;
    position: relative;
}

body.shop .main-content-body{padding:0 0 80px 0;}
.shop-heading {
    background: #51E69C;
    border-radius: 23px;
    height: 176px;
    margin: 5px 5px -96px 5px;
}
.shop-subjects {
    margin: 0 20px;
    background: #5243AA;
    border-radius: 20px;
    padding: 30px;
}
.shop-subjects .shop-subject-items .shop-subject-item{width:100%;}

body.shop .worskheets-large-list-item{width: calc(100% - 20px);}

}

.frontpage-intro{max-width:1100px;margin:0 auto;padding:60px 20px 80px;}
.frontpage-hero{text-align:left;margin-bottom:32px;}
.frontpage-hero h1{font-size:32px;line-height:40px;color:#15191E;margin:0;}

.frontpage-solutions{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;margin-bottom:40px;}
.frontpage-solution-card{display:flex;flex-direction:column;background:#fff;border:1px solid #E7EAEE;border-radius:12px;overflow:hidden;box-shadow:0 1px 2px rgba(21,25,30,0.04);}
.frontpage-solution-media{display:flex;align-items:center;justify-content:center;height:160px;margin:16px 16px 0;border:1px solid #E7EAEE;border-radius:8px;background:#F4F1EE;overflow:hidden;}
.frontpage-solution-media a{display:flex;align-items:center;justify-content:center;width:100%;height:100%;}
.frontpage-solution-media img{width:100%;height:100%;object-fit:cover;}
.frontpage-solution-body{display:flex;flex-direction:column;flex:1;padding:24px;}
.frontpage-solution-card h3{font-size:18px;line-height:24px;color:#15191E;margin-bottom:12px;}
.frontpage-solution-intro{flex:1;}
.frontpage-solution-intro ul{margin:0;padding-left:20px;}
.frontpage-solution-intro li{list-style:disc;font-size:14px;line-height:22px;color:#4F4F4F;margin-bottom:6px;}
.frontpage-solution-btn{display:block;margin-top:20px;text-align:center;background:#F0F2F4;color:#15191E;border:none;border-radius:6px;padding:12px 20px;font-size:14px;font-weight:600;text-decoration:none;}
.frontpage-solution-btn:hover{background:#E5E8EB;}

.frontpage-article{max-width:720px;}
.frontpage-article-back{display:inline-block;margin-bottom:16px;color:#4F4F4F;font-size:14px;text-decoration:none;}
.frontpage-article-back:hover{color:#15191E;}
.frontpage-article-card{background:#fff;border:1px solid #E7EAEE;border-radius:12px;overflow:hidden;box-shadow:0 1px 2px rgba(21,25,30,0.04);padding:32px;}
.frontpage-article h1{font-size:28px;line-height:36px;color:#15191E;margin:0 0 20px;}
.frontpage-article-image{display:block;width:100%;max-height:360px;object-fit:cover;border-radius:12px;margin-bottom:24px;}
.frontpage-article-intro{font-size:15px;line-height:24px;color:#4F4F4F;margin-bottom:20px;}
.frontpage-article-intro ul{margin:0;padding-left:20px;}
.frontpage-article-intro li{list-style:disc;margin-bottom:6px;}
.frontpage-article-text{font-size:15px;line-height:24px;color:#4F4F4F;}
.frontpage-article-text p{margin:0 0 16px;}
.frontpage-article-text ul{margin:0 0 16px;padding-left:20px;}
.frontpage-article-text li{list-style:disc;margin-bottom:6px;}
/* Numurēti soļi (Help Center rakstos to ir daudz) - bez šī tie mantotu
   augstāko "list-style:disc" un izskatītos kā parasts saraksts. */
.frontpage-article-intro ol,
.frontpage-article-text ol{margin:0 0 16px;padding-left:22px;}
.frontpage-article-intro ol li,
.frontpage-article-text ol li{list-style:decimal;}

.frontpage-help{text-align:center;background:#F9FAFB;border:1px solid #E7EAEE;border-radius:12px;padding:40px 24px;margin-bottom:32px;}
.frontpage-help h2{font-size:22px;line-height:28px;color:#15191E;margin-bottom:8px;}
.frontpage-help p{font-size:14px;line-height:22px;color:#4F4F4F;margin-bottom:20px;}
.frontpage-help-btn{display:inline-block;background:#F0F2F4;color:#15191E;border-radius:6px;padding:12px 24px;font-size:14px;font-weight:600;text-decoration:none;}
.frontpage-help-btn:hover{background:#E5E8EB;}

/* Help Center (sk. cls_catalog_control::admin_help_center()). Viss balstās
   uz jau esošajām sākumlapas kartītēm un raksta kartīti - šeit tikai tas,
   kas atšķiras: divas kolonnas trīs vietā, kategorijas ikona blakus
   virsrakstam un rakstu saraksts kartītē. */
.help-intro{font-size:15px;line-height:24px;color:#4F4F4F;margin-bottom:24px;}
.help-intro:empty{display:none;}
.help-search{margin-bottom:32px;}
.help-search .designs-search-wrap{position:relative;max-width:420px;}
.help-search .designs-search{width:100%;padding-right:44px;}
.help-search .designs-search-submit{position:absolute;top:50%;right:6px;transform:translateY(-50%);display:flex;align-items:center;justify-content:center;width:32px;height:32px;padding:0;border:none;background:none;cursor:pointer;border-radius:6px;}
.help-search .designs-search-submit:hover{background:#F0F2F4;}
.help-search .designs-search-submit svg{display:block;width:20px;height:20px;}

.help-categories{grid-template-columns:repeat(2,1fr);}

/* Ikonas nāk no menu.svg_icon (console -> izvēlnes detaļas) un tiek ieliktas
   lapā kā inline SVG, tāpēc to krāsu nosaka CSS (failos ir
   stroke="currentColor") - sadaļas nav pelēkas, un toni var mainīt vienā
   vietā, nevis 5 failos. Bez ikonas .help-icon vispār netiek izvadīts (sk.
   cls_catalog_control::help_center_icon_html()), tāpēc virsraksts nepaliek
   ar tukšu atstarpi. */
.help-icon{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;width:40px;height:40px;border-radius:10px;background:#F7EDF1;color:var(--brand-accent, #9A2F58);}
.help-icon svg{display:block;width:22px;height:22px;}
.help-hero{display:flex;align-items:center;gap:14px;}
.help-hero .help-icon{width:48px;height:48px;border-radius:12px;}
.help-hero .help-icon svg{width:26px;height:26px;}
.help-category-head{display:flex;align-items:center;gap:12px;margin-bottom:12px;}
.frontpage-article-head{display:flex;align-items:center;gap:14px;margin-bottom:20px;}
.frontpage-article-head h1{margin-bottom:0;}
.help-category-card h3{margin-bottom:0;}
.help-category-card h3 a{color:#15191E;text-decoration:none;}
.help-category-card h3 a:hover{text-decoration:underline;}
.help-category-intro{flex:0 0 auto;margin-bottom:12px;font-size:14px;line-height:22px;color:#4F4F4F;}
.help-category-intro:empty{display:none;}

.help-article-list{margin:0;padding:0;list-style:none;flex:1;}
.help-article-list li{list-style:none;margin:0;border-top:1px solid #E7EAEE;}
.help-article-list li:first-child{border-top:none;}
.help-article-list a{display:block;padding:10px 0;font-size:14px;line-height:22px;color:#15191E;text-decoration:none;}
.help-article-list a:hover{color:var(--brand-accent, #9A2F58);}
.help-article-card{margin-bottom:32px;padding:8px 32px;}
.help-article-card p{font-size:15px;line-height:24px;color:#4F4F4F;padding:24px 0;margin:0;}

@media (max-width:900px){
    .frontpage-solutions{grid-template-columns:1fr;}
}

@media (max-width:768px){
    .admin .design-wrap{padding:20px 16px !important;padding-top:55px !important;}
    .frontpage-intro{padding:32px 0 48px;}
    .frontpage-hero{margin-bottom:24px;}
    .frontpage-hero h1{font-size:26px;line-height:32px;}
    .frontpage-solutions{gap:16px;}
    .frontpage-help{padding:28px 16px;}

    .admin .admin-topbar-icons{display:none;}
    .admin-mobile-menu-toggle{display:flex;}
    .admin .header-wrap.header-wrap-worksheet{z-index:20;}
    .admin .header.header-worksheet{overflow:visible;}
    .admin.admin-mobile-nav-open .wrap-content.worksheet-content{z-index:601;}

    .admin-page-body{gap:0;}
    .admin-sidebar{
        position:fixed;
        top:0;
        right:0;
        bottom:0;
        width:82%;
        max-width:320px;
        z-index:600;
        border-left:none;
        box-shadow:-4px 0 24px rgba(21,25,30,0.15);
        transform:translateX(100%);
        transition:transform 0.25s ease;
        overflow-y:auto;
        box-sizing:border-box;
    }
    .admin-sidebar.mobile-open{transform:translateX(0);}
    .admin-sidebar-backdrop{
        display:none;
        position:fixed;
        inset:0;
        background:rgba(21,25,30,0.5);
        z-index:590;
    }
    .admin-sidebar-backdrop.open{display:block;}
    .admin-sidebar-mobile-close{
        display:flex;
        align-items:center;
        justify-content:center;
        width:32px;
        height:32px;
        margin:0 12px 8px auto;
        border:none;
        background:none;
        font-size:22px;
        line-height:1;
        color:#5C5F62;
        cursor:pointer;
    }

    .admin .add-product-top h1{font-size:24px;line-height:30px;text-align:left;padding-bottom:16px;}
    .admin .add-product-top .add-product-steps{justify-content:flex-end;}
    .admin .add-product-container,
    .admin .add-3d-model{padding:12px;}

    .admin .designs-list-toolbar{flex-direction:column;align-items:stretch;}
    .admin .designs-list-toolbar select,
    .admin .add-product-container .designs-list-toolbar .designs-search-wrap,
    .admin .designs-list-toolbar .admin-date-filter{width:100%;max-width:none;flex:none;margin-left:0;box-sizing:border-box;}

    .admin .add-product-container .designs-list{padding:16px 0 0;}
    .admin .add-product-container .designs-list .row.heading{display:none;}
    .admin .add-product-container .designs-list .row{
        display:grid;
        grid-template-columns:auto 52px 1fr;
        align-items:center;
        gap:0;
        border:1px solid #E7EAEE;
        background:#fff;
        border-radius:8px;
        padding:12px;
        margin-bottom:10px;
        /* Bez šī border+padding tiek pieskaitīti VIRSĀ pilnajam width (100%
           no .designs-list), nevis iekļauti tajā - tieši tāpēc rinda (un jo
           īpaši .row.even/.admin-order-row-highlight ar redzamu rāmi/fonu)
           izlīda ārpus .designs-list malas (~26px = 2x12px padding + 2x1px
           border). */
        box-sizing:border-box;
        width:100%;
    }
    .admin .add-product-container .designs-list .row.even,
    .admin .add-product-container .designs-list .row.admin-order-row-highlight{
        border-radius:3px;
    }
    .admin .add-product-container .designs-list .row div{
        flex:none;
        padding:6px 4px;
    }
    .admin .add-product-container .designs-list .row .row-checkbox{grid-column:1;grid-row:1;}
    .admin .add-product-container .designs-list .row .col-image{grid-column:2;grid-row:1;}
    .admin .add-product-container .designs-list .row .col-name{
        grid-column:3;
        grid-row:1;
        font-weight:400;
        font-size:15px;
        color:#15191E;
    }
    .admin .add-product-container .designs-list .row > div:not(.row-checkbox):not(.col-image):not(.col-name){
        grid-column:1/-1;
        display:flex;
        flex-direction:row;
        justify-content:space-between;
        align-items:center;
        gap:12px;
        border-top:1px solid #F0F2F4;
        text-align:right;
    }
    .admin .add-product-container .designs-list .row > div[data-label]::before{
        content:attr(data-label);
        font-weight:600;
        color:#6D7175;
        font-size:13px;
        text-align:left;
    }
    .admin .add-product-container .designs-list .row > div:not([data-label]):not(.row-checkbox):not(.col-image):not(.col-name){
        justify-content:center;
    }

    .admin .orders-list.designs-list .row{grid-template-columns:52px 1fr;}
    .admin .orders-list.designs-list .row .col-image{grid-column:1;}
    .admin .orders-list.designs-list .row .col-name{grid-column:2;}

    /* "Setup product" (/admin/?design=X) solu josla - :has(.step-back) atšķir
       to no designs_list.htm.inc koplietotās .add-product-steps (kurai nav
       .step-back un kura jau pareizi strādā ar justify-content:flex-end
       augstāk) - lai nesalauztu to sarakstu skatu. */
    .admin .add-product-top .add-product-steps:has(.step-back){
        justify-content:stretch;
        gap:12px;
    }
    .admin .add-product-top .add-product-steps:has(.step-back) .step-current{display:none;}
    .admin .add-product-top .add-product-steps:has(.step-back) .step-back,
    .admin .add-product-top .add-product-steps:has(.step-back) .step-forward{
        flex:1;
        padding:0;
    }
    .admin .add-product-top .add-product-steps:has(.step-back) .step-back .btn,
    .admin .add-product-top .add-product-steps:has(.step-back) .step-forward .btn{
        width:100%;
        box-sizing:border-box;
        display:flex;
        flex-direction:row;
        align-items:center;
        justify-content:center;
        gap:8px;
        padding:12px 16px;
    }
    /* Back = pelēks/tumšs teksts ar bultiņu, Next = maroon - sk. Figma
       "print area 2 / mobile". Scoped ar :has(.step-back) tāpat kā augstāk,
       lai neaiztiktu designs_list.htm.inc koplietoto "Add product" pogu. */
    .admin .add-product-top .add-product-steps:has(.step-back) .step-back .btn{
        background:#F0F2F4;
        color:#15191E;
    }
    .admin .add-product-top .add-product-steps:has(.step-back) .step-back .btn-back-arrow{
        transform:scaleX(-1);
        flex:0 0 auto;
    }
    .admin .add-product-top .add-product-steps:has(.step-back) .step-forward .btn{
        background:var(--brand-accent, #9A2F58);
        color:#fff;
    }

    /* Print-area kartītes (attēls + Name + Edit print area/Change image) -
       no 4-kolonnu grid uz vienu kolonnu sakrautu sarakstu, sk. Figma
       "print area 2 / mobile". "+ Add print area" tukšā zona (vienīgā
       .dropzone-container-col BEZ .product-side klases) pārcelta uz beigām
       ar order, negrozot HTML/JS secību. */
    .admin .add-product-container .dropzone-container{
        display:flex;
        flex-direction:column;
        gap:20px;
    }
    .admin .add-product-container .dropzone-container-col{width:100%;}
    .admin .add-product-container .dropzone-container-col:not(.product-side){
        order:99;
        padding-top:0;
    }
    .admin .add-product-container .dropzone-container-col:not(.product-side) .dropzone{
        padding-top:0;
        min-height:64px;
    }
    .admin .add-product-container .dropzone-container-col.product-side .image-content{
        padding-top:75%;
        /* Jau augšupielādētam attēlam - neitrāli pelēks rāmis, NEVIS tas pats
           maroon "upload zone" rāmis, ko lieto tukšajai "Add print area"
           zonai (.dropzone). Sk. Figma "print area 2 / mobile" - aizpildītam
           attēlam ir izteikti apaļi stūri, tukšajam - taisni. */
        border-color:#C3CBD5;
        border-radius:3px;
        overflow:hidden;
    }
    .admin .add-product-container .dropzone-container-col.product-side .images-content-uploaded{
        border-radius:3px;
        overflow:hidden;
    }
    .admin .add-product-top h1 input{margin-top:12px;}

    /* edit_print_area (Zakeke-style rīks) - Settings/Save area josla VIENMĒR
       pilnā platumā mobilajā skatā, gan savērstā (canvas skats), gan
       izvērstā (iestatījumu panelis) stāvoklī - sk. Figma node 28-35092 un
       28-34805. Bez .print-area-tools atzīmes klases šī josla (kopīga ar
       7 citiem šabloniem) savērstā stāvoklī sarūk par mazu ~118px nozīmīti,
       kas tur pazuda aiz canvas satura - tāpēc lietotājs to nevarēja atrast. */
    .mobile-view .navigation-content.navigation-worksheet-tools.print-area-tools .navigation-worksheet-tools-switch{
        width:100%;
        position:fixed;
        /* ⚠️ top:0 (kā ģenēriskajai :not(.collapsed) versijai augstāk) paslēpjas
           PILNĪBĀ zem vietnes pastāvīgā .header-wrap-worksheet (position:fixed,
           z-index:20, 54px augsts) - tas ir precīzi tas, kāpēc šī josla vispār
           nebija redzama. 54px = tas pats header augstums, ko jau lieto
           .navigation-content.navigation-worksheet-tools bāzes noteikums. */
        top:54px;
        left:0;
        right:0;
        height:60px;
        z-index:3;
        display:flex;
        justify-content:space-between;
        align-items:center;
        padding:0 20px;
        box-sizing:border-box;
        background:#fff;
    }
    /* "Settings" + hamburgera ikona kā PATI SAVA pelēka poga (nevis vienkārši
       teksts baltās joslas iekšā) - sk. Figma "edit_print_area / mobile". */
    .mobile-view .navigation-content.navigation-worksheet-tools.print-area-tools .navigation-worksheet-tools-switch .settings-toggle-btn{
        display:flex;
        align-items:center;
        gap:10px;
        background:#F0F2F4;
        border-radius:6px;
        padding:10px 16px;
    }
    .mobile-view .navigation-content.navigation-worksheet-tools.print-area-tools .navigation-worksheet-tools-switch .mobile-save-area{
        display:flex;
        width:auto;
        margin:0;
        padding:8px 20px;
        flex-direction:row;
    }
    /* .design-next-step (Back/Toggle editing polygon/Save) ir parasts in-flow
       elements aiz TĀ PAŠA .navigation-worksheet-tools-switch, kas tagad ir
       position:fixed 60px augsts - bez šī tas paslēpjas TIEŠI zem jaunās
       joslas (abi aizņem to pašu y:54-114px reģionu). "Back" citādi paliktu
       vispār nesasniedzams. */
    .mobile-view .navigation-content.navigation-worksheet-tools.print-area-tools .design-next-step{
        margin-top:60px;
    }
    /* Canvas saturam (zoom pogas, canvas-wrap) jāsākas ZEM jaunās 60px joslas,
       nevis tieši zem 54px header (kā parastā .admin .design-wrap augstāk) -
       citādi print-area-zoom-controls (+/-/100%) daļēji paslēpjas zem tās. */
    .wrap-content.worksheet-content:has(.print-area-tools) .design-wrap{
        padding-top:115px !important;
    }
    /* .design-side bāzes noteikums (augstāk) ieslēdz -webkit-overflow-scrolling:
       touch + overflow-x:auto - vajadzīgs VAIRĀKU LAPU horizontālai ritināšanai
       parastajā worksheet redaktorā, BET šeit (viena apdrukas zona, bez
       "lapām") tas TIKAI konkurē ar fabric.js formas rokturu touch vilkšanu -
       iOS katrā pieskārienā jāizlemj, vai tas ir NATĪVS ritinājums vai JS
       vilkšana, un dažkārt "uzvar" nepareizā puse (tieši "brīžam strādā,
       brīžam nē" rokturu vilkšana uz iPhone). touch-action:none ŠEIT (tikai
       print-area-tools lapā, ne visur) atdod pieskārienu VIENMĒR fabric.js. */
    .wrap-content.worksheet-content:has(.print-area-tools) .design-side{
        touch-action:none;
    }
}

.frontpage-auth{display:flex;flex-wrap:wrap;gap:24px;justify-content:center;}
.frontpage-auth-box{flex:1 1 320px;max-width:400px;background:#fff;border:1px solid #E7EAEE;border-radius:12px;padding:28px;}
.frontpage-auth-box h2{font-size:20px;line-height:28px;color:#15191E;margin-bottom:20px;}
.frontpage-form .frontpage-field{margin-bottom:16px;}
.frontpage-form label{display:block;font-size:13px;color:#4F4F4F;margin-bottom:6px;}
/* 16px, nevis mazāk: zem 16px iOS Safari fokusējoties automātiski pietuvina
   visu formu (tas pats iemesls, kas /admin/ auth skatos - sk.
   cls_catalog_control::admin_auth_styles()). */
.frontpage-form input{width:100%;box-sizing:border-box;padding:10px 12px;border:1px solid #E1E5EA;border-radius:3px;font-size:16px;}

/* Paroles "actiņa" - poga ievadlauka iekšpusē pa labi. Pogu uzbūvē
   jvs/js.js katram .has-toggle apvalkam, tāpēc šeit ir tikai izskats, un
   viens un tas pats izskats der gan /admin/ auth skatiem, gan login modālim
   uz "/" (templates/html/top_admin.htm.inc). */
.has-toggle{position:relative;}
.has-toggle input{padding-right:44px;}
.has-toggle .pw-toggle{position:absolute;right:2px;top:50%;transform:translateY(-50%);width:38px;height:38px;display:flex;align-items:center;justify-content:center;background:none;border:0;padding:0;cursor:pointer;color:#6D7175;}
.has-toggle .pw-toggle:hover{color:#202223;}
.has-toggle .pw-toggle svg{width:20px;height:20px;display:block;}
.has-toggle .pw-toggle .pw-eye-off{display:none;}
.has-toggle .pw-toggle.is-visible .pw-eye-on{display:none;}
.has-toggle .pw-toggle.is-visible .pw-eye-off{display:block;}
button.frontpage-btn{background:var(--brand-accent, #9A2F58);color:#fff;border:none;border-radius:6px;padding:12px 20px;font-size:14px;font-weight:600;cursor:pointer;width:100%;}
button.frontpage-btn:hover{background:var(--brand-accent-dark, #7D2648);}
.frontpage-form-error{background:#FBEAEA;color:#B3261E;border-radius:6px;padding:10px 12px;font-size:13px;margin-bottom:16px;}

/* ------------------------------------------------------------------------
   "Setup product" solis (/admin/?design=X) - DESKTOP izkārtojums pēc Figma
   "print area 2 / desktop". Mobilais skats (<=768px) jau sakārtots agrāk,
   tāpēc šie noteikumi ir TIKAI desktopam (min-width:769px) - citādi tie
   pārrakstītu jau apstiprināto mobilo izkārtojumu.
   Soļu joslas noteikumi scoped ar :has(.step-back) - tieši tāpat kā mobilie
   augstāk - lai neaiztiktu designs_list.htm.inc koplietoto
   .add-product-steps (tai .step-back nav).
   ------------------------------------------------------------------------ */
@media (min-width:769px){
    /* Labās puses navigācija Figma ir pilna auguma sānjosla līdz lapas
       apakšai. align-items:flex-start (bāzē, lai saturs nestieptos) to
       nogrieza tieši pēdējā punkta vietā - uz īsām lapām (piem. šis solis)
       tas izskatījās pēc pusceļā aprautas joslas.
       ⚠️ Atņemamajam skaitlim JĀSAKRĪT ar .design-wrap vertikālo padding.
       Agrāk tie bija 75px = padding-top 55 + padding-bottom 20. Kad
       padding-bottom tika noņemts, šis skaitlis palika 75, un uz īsām lapām
       sānjosla beidzās 20px pirms lapas apakšas - tukša sprauga. Tagad te ir
       tikai padding-top (55px). */
    .admin-page-body{
        align-items:stretch;
        min-height:calc(100vh - 55px);
    }

    /* Produkta nosaukums Figma IR pats virsraksts (40px/52px, centrēts), nevis
       maza ievadrindiņa rāmī. Lauks paliek rediģējams, tikai manto h1
       tipogrāfiju; rāmis parādās uz hover/focus, lai rediģējamība nepazūd.
       ⚠️ Šeit agrāk bija arī padding-bottom:20px un atsevišķs izņēmums
       Review solim ar 0. Abi noņemti - bāzes noteikums (.admin
       .add-product-top h1, css ~1800) tagad ir 0 VISUR, jo zem virsraksta
       katrā šādā lapā seko .add-product-steps ar savu atstarpi. */
    /* ⚠️ 2026-09-23: rāmis tagad redzams VIENMĒR. Ar caurspīdīgu rāmi neviens
       nepamanīja, ka nosaukumu var mainīt - visi produkti palika "New design
       + datums" (sk. arī autosave admin.js). Tipogrāfija paliek kā virsrakstam. */
    .admin .add-product-top:has(.step-back) h1 input{
        font:inherit;
        letter-spacing:inherit;
        text-align:center;
        color:inherit;
        background:#fff;
        border:1px solid #C3CBD5;
        border-radius:6px;
        display:block;
        width:100%;
        max-width:720px;
        margin:0 auto;
        padding:0 16px;
    }
    .admin .add-product-top:has(.step-back) h1 input:hover{border-color:#8D97A5;}
    .admin .add-product-top:has(.step-back) h1 input:focus{border-color:var(--brand-accent, #9A2F58);outline:none;}

    /* Soļi ir TIEŠI satura vidū. justify-content:space-between tos centrē starp
       abām pogām, un, tā kā Back un Next ir dažāda platuma, soļi sanāk nobīdīti
       pa labi. 1fr auto 1fr nofiksē vidu pret lapu, kā Figma. */
    .admin .add-product-top .add-product-steps:has(.step-back){
        display:grid;
        grid-template-columns:1fr auto 1fr;
    }
    .admin .add-product-top .add-product-steps:has(.step-back) .step-back{justify-self:start;}
    /* Bāzes .step-forward padding (0 10px) atstāja Next pogu 10px īsāku par
       zemāk esošā baltā konteinera malu - Figma tās ir precīzi vienā līnijā. */
    .admin .add-product-top .add-product-steps:has(.step-back) .step-forward{justify-self:end;padding:0;}

    /* Back = gaiši pelēka poga ar bultu PA KREISI, Next = maroon, abas šauras
       (bāzes a.btn padding 10px 48px tās padarīja pārmērīgi platas un melnas).
       .materials-editor-actions izslēgts - tur .step-forward ir Dismiss+Save
       pāris, nevis "nākamais solis". */
    .admin .add-product-top .add-product-steps:has(.step-back) .step-back .btn{
        flex-direction:row;
        align-items:center;
        gap:10px;
        padding:10px 16px;
        background:#F0F2F4;
        color:#15191E;
    }
    .admin .add-product-top .add-product-steps:has(.step-back) .step-back .btn:hover{background:#E1E5EA;}
    .admin .add-product-top .add-product-steps:has(.step-back) .step-back .btn-back-arrow{
        transform:scaleX(-1);
        flex:0 0 auto;
    }
    .admin .add-product-top .add-product-steps:has(.step-back) .step-forward:not(.materials-editor-actions) .btn{
        padding:10px 16px;
        background:var(--brand-accent, #9A2F58);
        color:#fff;
        /* Bāzes a.btn margin:8px 0 tikai uzpūš joslu; augstumu nosaka pati poga. */
        margin:0;
    }
    /* "Save & Finish 3D Setup" pogu šeit ievieto admin.js caur
       #model-download-slot, un design_admin/styles.css tam uzliek
       margin:4px 0 16px - domāts vecajai vietai lapas vidū. Soļu joslā tas
       pogu pacēla 6px virs Back/soļu līnijas (cy 161 pret 167). */
    .admin .add-product-top .add-product-steps:has(.step-back) .step-forward .model-download-slot{
        margin:0;
    }
    .admin .add-product-top .add-product-steps:has(.step-back) .step-forward:not(.materials-editor-actions) .btn:hover{
        background:var(--brand-accent-dark, #7D2648);
    }

    /* Apdrukas pušu režģis: Figma kartīte ir ~285px plata ar ~50px atstarpi un
       režģis NEIZSTIEPJAS pāri visam platumam. repeat(4, 1fr) turpretī vienmēr
       sadalīja platumu 4 daļās, tāpēc kartītes sanāca ~225px un attēls
       nesamērīgi mazs. */
    .admin .add-product-container .dropzone-container{
        grid-template-columns:repeat(auto-fill, minmax(260px, 285px));
        gap:50px;
    }
    /* Tukšā "+ Add print area" zona (vienīgā .dropzone-container-col BEZ
       .product-side) Figma ir PĒC jau pievienotajām pusēm - pārceļam ar order,
       negrozot HTML/JS secību (tāpat kā mobilajā skatā). */
    .admin .add-product-container .dropzone-container-col:not(.product-side){order:99;}
    /* Jau augšupielādētam attēlam - neitrāli pelēks rāmis; maroon "upload zone"
       rāmis paliek TIKAI tukšajai "+ Add print area" zonai. */
    .admin .add-product-container .dropzone-container-col.product-side .image-content{
        border-color:#C3CBD5;
    }
    /* "Edit print area" + "Change image" Figma aizņem kartītes pilnu platumu
       vienādās pusēs; space-between tās atstāja šauras un piespiestas malām. */
    .admin .add-product-container .product-size-btn{gap:11px;}
    .admin .add-product-container .product-size-btn .btn{flex:1;min-width:0;}
}

/* ------------------------------------------------------------------------
   Apstiprinājuma modālis neatgriezeniskām darbībām (pagaidām - produkta
   dzēšana no Customizable Products saraksta, sk. jvs/3d.js .delete-product).
   Aizstāj pārlūka confirm(): tas izskatījās pēc sistēmas kļūdas paziņojuma,
   nebija noformējams un dažos pārlūkos izmet arī "neļaut šai lapai rādīt
   dialogus" izvēli, pēc kuras dzēšana klusi notiktu BEZ apstiprinājuma.
   Stils seko .admin-login-modal (templates/html/top_admin.htm.inc).
   ------------------------------------------------------------------------ */
.admin-confirm{
    position:fixed;
    inset:0;
    z-index:700;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:20px;
    box-sizing:border-box;
}
/* [hidden] noklusētais display:none nāk no pārlūka stila lapas, tāpēc
   display:flex augstāk to pārraksta - vajag skaidru noteikumu. */
.admin-confirm[hidden]{display:none;}
.admin-confirm-backdrop{
    position:absolute;
    inset:0;
    background:rgba(21,25,30,0.5);
}
.admin-confirm-box{
    position:relative;
    width:100%;
    max-width:420px;
    background:#fff;
    border-radius:12px;
    padding:28px;
    box-sizing:border-box;
    box-shadow:0 8px 32px rgba(21,25,30,0.2);
    font-family:Inter,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
}
.admin-confirm-title{
    margin:0 0 12px;
    font-size:18px;
    line-height:24px;
    font-weight:600;
    color:#15191E;
}
.admin-confirm-text{
    margin:0 0 24px;
    font-size:14px;
    line-height:20px;
    color:#4F4F4F;
    overflow-wrap:anywhere;
}
.admin-confirm-actions{
    display:flex;
    justify-content:flex-end;
    gap:12px;
}

@media (max-width:768px){
    .admin-confirm-actions{flex-direction:column-reverse;}
    .admin-confirm-actions .ui-btn{width:100%;}
}

/* ------------------------------------------------------------------------
   edit_print_area - zoom vadīklas un Ruler rīka norāde.
   Stili pārcelti no inline style="" atribūtiem šablonā (sk.
   templates/3d/edit_print_area/desing_content.htm.inc), lai pieskāriena
   mērķa izmēru vispār BŪTU IESPĒJAMS pārrakstīt ar media query - inline
   stils vienmēr uzvarētu.
   ------------------------------------------------------------------------ */
.print-area-zoom-btn{
    cursor:pointer;
    background:#fff;
    border-radius:3px;
    box-shadow:0 1px 3px rgba(0,0,0,0.3);
    display:flex;
    align-items:center;
    justify-content:center;
    width:32px;
    box-sizing:border-box;
}
.print-area-zoom-reset.print-area-zoom-btn{
    font-size:11px;
    text-align:center;
    padding:4px 0;
}

/* Uz pieskāriena ierīcēm (pointer:coarse - iPhone/Android, NEVIS pele) šīs
   pogas bija 32x36 un 32x21 px. iOS vadlīnijas prasa vismaz 44x44, Android
   Material 48x48 - ar pirkstu tajās bija grūti trāpīt, un garām aizgājušais
   pieskāriens nokļuva uz canvas (kur tas sāka panorāmu), tāpēc izskatījās,
   ka zoom pogas "nestrādā". Ikonas izmērs paliek tāds pats - palielinās
   TIKAI klikšķa laukums. */
@media (pointer: coarse){
    .print-area-zoom-controls{
        gap:8px !important;
    }
    .print-area-zoom-btn{
        width:44px;
        min-height:44px;
    }
    .print-area-zoom-reset.print-area-zoom-btn{
        font-size:12px;
        padding:0;
    }
}

/* Ruler rīka norāde - mobilajā "Settings" panelis aizveras, tiklīdz rīks
   ieslēgts (sk. jvs/3d.js activateRulerMode()), tāpēc bez šīs norādes nekas
   ekrānā nepateiktu, ka tagad jāvelk līnija pa foto. */
.ruler-mode-hint{
    display:none;
    position:fixed;
    left:50%;
    transform:translateX(-50%);
    bottom:24px;
    z-index:25;
    max-width:calc(100vw - 32px);
    background:rgba(21,25,30,0.92);
    color:#fff;
    font-size:13px;
    line-height:1.35;
    text-align:center;
    padding:10px 16px;
    border-radius:8px;
    pointer-events:none;
}

/* "Matching sides" solis (/admin/?design=X&action=3dmodel_matching_sides) -
   ievada teksts pēc Figma (node 107-17215): centrēts, ierobežota rindas
   platuma rindkopa zem virsraksta, nevis viena gara rinda pa kreisi.
   Scoped ar .add-3d-model-intro, jo .add-3d-model lieto arī 3D Model View
   un materiālu redaktors. */
.admin .add-3d-model .add-3d-model-intro{
    max-width:1000px;
    margin:0 auto;
    text-align:center;
    font-size:16px;
    line-height:24px;
    color:#15191E;
}

/* ------------------------------------------------------------------------
   3D modeļa darbības ("..." izvēlne zem 3D skata) - Remove / Edit Materials
   un admin.js pievienotās "Save & Finish 3D Setup" / "Download". Figma
   (node 107-17215) zem 3D skata pogas nerāda vispār, tāpēc tās saliktas
   zem vienas pogas - tas pats paraugs, ko lieto produktu saraksta rindas.
   ------------------------------------------------------------------------ */
.model-actions{
    position:relative;
    display:flex;
    /* Poga stāv VIRS 3D paneļa, pie tā labās malas - kā rīkjosla. Zem paneļa
       (un centrēta) tā bija nostumta lapas apakšā, tālu no paša skata. */
    justify-content:flex-end;
    padding:0 0 8px 0;
}
.model-actions-trigger{
    display:flex;
    align-items:center;
    justify-content:center;
    width:32px;
    height:32px;
    padding:0;
    border:none;
    border-radius:6px;
    background:transparent;
    cursor:pointer;
}
.model-actions-trigger:hover,
.model-actions.open .model-actions-trigger{
    background:#F0F2F4;
}
/* Bāzes .sides_3d_model_preview_btn ir rinda ar gap:20px - izvēlnē vajag
   kolonnu. Selektoram jāatkārto viss bāzes ceļš (.sides_3dmodel
   .sides_3d_model_preview ...), citādi bāzes noteikums ar 3 klasēm uzvar un
   izvēlne paliek rindā. */
.sides_3dmodel .sides_3d_model_preview .sides_3d_model_preview_btn.model-actions-menu{
    display:none;
    position:absolute;
    top:calc(100% + 4px);
    right:0;
    z-index:10;
    min-width:200px;
    flex-direction:column;
    gap:0;
    padding:6px;
    background:#fff;
    border:1px solid #E7EAEE;
    border-radius:8px;
    box-shadow:0 4px 16px rgba(21,25,30,0.12);
}
.model-actions.open .sides_3d_model_preview_btn.model-actions-menu,
.sides_3dmodel .sides_3d_model_preview .model-actions.open .sides_3d_model_preview_btn.model-actions-menu{
    display:flex;
}
/* Pogas izvēlnē izskatās kā izvēlnes ieraksti, nevis kā melni taisnstūri.
   a.btn/button.btn bāze ir melns fons + centrēts teksts, tāpēc jāpārraksta. */
.model-actions-menu .btn,
.model-actions-menu a.btn,
.model-actions-menu button.btn,
.sides_3dmodel .sides_3d_model_preview .model-actions-menu .btn{
    display:block;
    width:100%;
    box-sizing:border-box;
    margin:0;
    padding:8px 10px;
    border:none;
    border-radius:5px;
    background:none;
    font-family:inherit;
    font-size:13px;
    font-weight:600;
    line-height:20px;
    text-align:left;
    color:#15191E;
    text-decoration:none;
    white-space:nowrap;
}
.model-actions-menu .btn:hover{
    background:#F0F2F4;
}
/* "Remove" ir neatgriezeniska darbība - vienmēr pēdējā un maroon.
   order vajadzīgs tāpēc, ka admin.js savas pogas PIEVIENO šī konteinera
   beigās, tātad bez tā Remove paliktu vidū. */
.model-actions-menu .model-actions-danger{
    order:99;
    color:var(--brand-accent, #9A2F58);
}
.model-actions-menu .model-actions-danger:hover{
    background:var(--brand-accent-tint, #F3E1E9);
}

/* Puses id sānu sarakstā - klāt esošs, bet neuzkrītošs (sk.
   design_3dmodel_sides_item.htm.inc). */
.layer-options .side-id-badge{
    margin-left:8px;
    font-size:11px;
    font-weight:400;
    color:#9DA4AE;
}

/* ------------------------------------------------------------------------
   "Matching sides" satura izkārtojums pēc Figma (node 107-17215).
   ⚠️ SCOPED ar .sides-3dmodel-matching. Pats bloks (design_3dmodel_sides*.
   htm.inc + design_admin/admin.js) ir KOPĪGS ar 3D Model View, un tā Figma
   kadrs vēl nav redzēts - bez šī scope izmaiņas klusi pārzīmētu arī to.
   Kad būs 107-19569 eksports, scope vai nu paplašinās, vai paliks.
   Izmēri nomērīti no Figma eksporta (2000px plats kadrs pie 1440px ->
   attēla px / 1.3889 = CSS px).
   ------------------------------------------------------------------------ */
.sides_3dmodel.sides-3dmodel-matching{
    display:grid;
    grid-template-columns:427px minmax(0,1fr);
    align-items:start;
    gap:0;
    justify-content:stretch;
    /* ⚠️ Bija "20px 0 40px 0". Ap šo bloku jau ir .add-3d-model kartīte ar
       saviem 20px, tāpēc šie nāca virsū tiem - augšā 40px, apakšā 60px tukšuma.
       Kopš canvas aizpilda paneli, tie ir tieši tā pelēkā josla virs un zem 3D
       skata. Kartītes atstarpe paliek, šī ir lieka. */
    padding:0;
    /* ⚠️ design_admin/styles.css uzliek .sides_3dmodel{max-width:980px;
       margin:0 auto} - tas saturu centrēja un uz platiem ekrāniem atstāja
       lielu tukšumu pa kreisi (pie 1920px ~264px no katras puses). Figma
       saturs aizņem VISU pieejamo platumu, tāpēc vāku noņemam. Tas fails
       ielādējas pēc style.css, tāpēc vajag divu klašu specifiku. */
    max-width:none;
    width:100%;
    margin:0;
}
/* Vertikālais atdalītājs starp sarakstu un 3D skatu - border uz labās
   kolonnas, nevis atsevišķs elements, lai nebūtu jāpieliek tukšs <div>
   koplietotajā šablonā. */
.sides-3dmodel-matching .sides_3d_model_preview{
    border-left:1px solid #C3CBD5;
    padding-left:40px;
}
/* Bāzes .sides_3d_model_sides_list noteikums (css ~2399) ir salauzts ar lieku
   komatu selektorā, tāpēc kolonna te jāuzstāda pašam - citādi virsraksts un
   saraksts sakārtojas blakus. */
.sides-3dmodel-matching .sides_3d_model_sides_list{
    display:flex;
    flex-direction:column;
    min-width:0;
}
.sides-3dmodel-matching .sides-list-heading{
    display:block;
    font-size:28px;
    font-weight:600;
    line-height:36px;
    letter-spacing:-0.015em;
    color:#15191E;
    padding:0 0 24px 0;
}
.sides-3dmodel-matching .sides-list-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;flex-wrap:wrap;}
.sides-3dmodel-matching .sides-list-head .sides-add-area{display:inline-flex;align-items:center;gap:8px;margin-top:2px;}
/* Bāzes .sides_3d_model_items ir RINDA ar gap:40px - sarakstam vajag
   kolonnu, kur katru rindu atdala 1px līnija (Figma rindas solis ~145px). */
.sides-3dmodel-matching .sides_3d_model_items{
    display:flex;
    flex-direction:column;
    gap:0;
    padding:0;
}
.sides-3dmodel-matching .sides_3d_model_items > *{
    padding:16px 0;
    border-top:1px solid #C3CBD5;
}
.sides-3dmodel-matching .sides_3d_model_items > *:first-child{
    border-top:none;
    padding-top:0;
}
/* 3D skats pelēkā panelī, kas aizpilda labo kolonnu (Figma: ~581px plats,
   tāds pats pelēks kā lapas fons). */
.sides-3dmodel-matching .sides_3d_model_canvas_container{
    background:#E1E5EA;
    border-radius:3px;
    /* ⚠️ Bija 20px. Canvas tagad aizpilda konteineru (sk. admin.js
       getAdminCanvasSize), tāpēc šis padding palika kā pelēka josla ap 3D
       skatu - tieši tā, ko tas agrāk noderēja, kamēr canvas bija fiksēti
       500x500 un tā un tā neaizpildīja laukumu. Bez tā canvas sniedzas līdz
       kartītes malām; pati aina ir tajā pašā pelēkajā (#E1E5EA), tāpēc fons
       nemainās - tikai 3D skats kļūst lielāks.
       Mērķēts uz .sides-3dmodel-matching, tāpēc materiālu redaktors, kam
       canvas joprojām ir fiksēts, savu atstarpi patur. */
    padding:0;
    box-sizing:border-box;
    min-height:420px;
}
/* ⚠️ #model-controls šajā skatā ir TUKŠS saraksts (nomērīts: 0 bērnu), bet ar
   savu 5px padding tas aizņem 10px, un .flex-container justify-content:
   space-between to noliek pa kreisi no canvas - tieši tā bija atstarpe canvas
   kreisajā pusē. Tukšu to paslēpjam; ja tajā kādreiz parādās saturs, :empty
   vairs nesakrīt un tas atgriežas pats. */
.sides-3dmodel-matching #model-controls:empty{
    display:none;
}

/* Virsraksts noklusēti paslēpts - sk. komentāru design_3dmodel_sides.htm.inc */
.sides-list-heading{display:none;}

/* 3D Model View statusa galva - "Please check..." teksts un modeļa statuss
   vienā rindā virs kontrolsaraksta. Agrāk statuss bija ATSEVIŠĶĀ joslā
   .add-product-top iekšienē, tātad ārpus baltās kastes, un uz platiem
   ekrāniem tas vizuāli uzkāpa virsū zemāk esošajam konteineram. Tagad tas
   ir tur, kur ir arī pārējais progresa stāsts - vienā kastē ar checklist. */
.admin .add-3d-model .model-status-head{
    display:flex;
    align-items:center;
    gap:8px;
    flex-wrap:wrap;
    /* 20px = tieši tik, cik .add-3d-model padding dod VIRS šīs rindas, lai
       tai būtu vienāds attālums no augšas un apakšas. */
    padding:0 0 20px 0;
}
.admin .add-3d-model .model-status-head-text{
    flex:1 1 auto;
    min-width:0;
}
.admin .add-3d-model .model-status-head .model-status-bar-label{
    margin-left:auto;
}

/* Sakļaujams 3D Model View iestatījumu bloks (sk. design_3dmodel.htm.inc
   #model-setup-panel). Galva ar statusu paliek redzama vienmēr; sakļaujas
   tikai kontrolsaraksts un "Real width". */
.admin .add-3d-model .model-setup-panel{
    border-bottom:1px solid #E7EAEE;
    margin:0 0 16px 0;
}
.admin .add-3d-model .model-setup-toggle{
    display:flex;
    align-items:center;
    justify-content:center;
    width:28px;
    height:28px;
    flex:0 0 auto;
    margin-left:4px;
    padding:0;
    border:none;
    border-radius:6px;
    background:none;
    cursor:pointer;
    transition:transform 0.15s ease;
}
.admin .add-3d-model .model-setup-toggle:hover{
    background:#F0F2F4;
}
.admin .add-3d-model .model-setup-panel.is-collapsed .model-setup-toggle{
    transform:rotate(-90deg);
}
.admin .add-3d-model .model-setup-panel.is-collapsed .model-setup-body{
    display:none;
}
/* ⚠️ Apakšējo atstarpi sakļautā stāvoklī NENONULLĒT - tieši tas rindai atņēma
   apakšējo atstarpi (26px virs teksta pret 6px zem tā). Tā paliek vienāda
   abos stāvokļos. */

/* ------------------------------------------------------------------------
   3D Model View / Matching sides MOBILAJĀ skatā.
   Desktopā saturs ir divās kolonnās (427px saraksts | 3D panelis). Pie 375px
   tā fiksētā kolonna izstiepa visu balto karti līdz 453px, 3D canvas (fiksēts
   500x500) sākās pie x=272 un beidzās pie 772, bet "Save & Finish" poga pie
   446 - t.i. praktiski viss saturs bija ārpus ekrāna.
   Mobilajā: VIENA kolonna - vispirms pilna platuma "Sides list", zem tā 3D
   skats.
   ------------------------------------------------------------------------ */
@media (max-width:768px){
    .sides_3dmodel.sides-3dmodel-matching{
        grid-template-columns:minmax(0,1fr);
        padding:8px 0 24px 0;
    }
    /* Vertikālais atdalītājs starp kolonnām kļūst par horizontālu virs 3D
       skata - kolonnu vairs nav, ko atdalīt pa kreisi. */
    .sides-3dmodel-matching .sides_3d_model_preview{
        border-left:none;
        border-top:1px solid #C3CBD5;
        padding-left:0;
        padding-top:16px;
        margin-top:16px;
        min-width:0;
    }
    .sides-3dmodel-matching .sides-list-heading{
        font-size:22px;
        line-height:28px;
        padding-bottom:16px;
    }
    .sides-3dmodel-matching .sides_3d_model_canvas_container{
        padding:12px;
        min-height:0;
    }
    /* ⚠️ !important te ir vajadzīgs, nevis slinkums: Three.js
       renderer.setSize(500,500) ieraksta canvas INLINE stilu
       "width:500px;height:500px", un inline stils uzvar pār stila lapu. Bez
       tā canvas palika 500px augsts un flex to saspieda līdz 138px platumā -
       modelis izstiepts un nogriezts. Mērogojam ar CSS, nevis maināma
       setSize(): to pašu renderētāju lieto arī attēlu tveršana, kas paļaujas
       uz fiksēto izmēru. WebGL izšķirtspēja (1000x1000) nemainās. */
    .sides-3dmodel-matching .threejs-container,
    .sides-3dmodel-matching .flex-container{
        width:100%;
        max-width:100%;
    }
    /* .flex-container ir rinda (space-between) ar diviem bērniem: tukšo
       .model-controls-list un 3D konteineru. Desktopā vietas pietiek, bet
       375px platumā tas tukšais saraksts paņēma 152px un canvas palika 142px,
       piespiests pie labās malas. Kolonnā 3D skats dabū visu platumu. */
    .sides-3dmodel-matching .flex-container{
        flex-direction:column;
        align-items:stretch;
    }
    /* ⚠️ Selektors sedz VISUS canvas panelī, ne tikai .threejs-container
       iekšējos: materiālu redaktoram ir sava inicializācija
       (editAdminMaterials(), design_admin/admin.js) ar citu DOM koku, un
       bez tā tā canvas mobilajā izlīda ārpus kartītes (labā mala 434px
       pie 375px ekrāna). */
    .sides-3dmodel-matching .threejs-container canvas,
    .sides-3dmodel-matching .sides_3d_model_canvas_container canvas{
        width:100% !important;
        max-width:100% !important;
        height:auto !important;
        display:block;
    }
    /* Statusa galva: teksts, statuss un poga vienā kolonnā, nevis rindā -
       375px platumā tie citādi tiek nogriezti. */
    .admin .add-3d-model .model-status-head{
        gap:6px;
    }
    .admin .add-3d-model .model-status-head-text{
        flex:1 1 100%;
    }
    .admin .add-3d-model .model-status-head .model-status-bar-label{
        margin-left:0;
    }
    .admin .add-3d-model .model-setup-toggle{
        margin-left:auto;
    }
    .admin .add-3d-model .model-real-width-container{
        flex-wrap:wrap;
    }
    /* Centrēts teksts ir Figma desktopa izvēle; 375px platumā tas sadalās
       7 nevienāda garuma rindās un lasās sliktāk nekā pa kreisi līdzināts. */
    .admin .add-3d-model .add-3d-model-intro{
        text-align:left;
        font-size:15px;
        line-height:22px;
    }
}

/* Materiālu redaktora kartītes galva pēc Figma (node 109-16331): virsraksts
   pa kreisi, Save/Dismiss pa labi - KARTĪTES iekšienē, nevis soļu joslā. */
.admin .add-3d-model.materials-editor .materials-editor-head{
    display:flex;
    align-items:center;
    gap:12px;
    flex-wrap:wrap;
    padding:0 0 20px 0;
}
.admin .add-3d-model.materials-editor .materials-editor-title{
    flex:1 1 auto;
    min-width:0;
    margin:0;
    font-size:28px;
    font-weight:600;
    line-height:36px;
    letter-spacing:-0.015em;
    color:#15191E;
}
.admin .add-3d-model.materials-editor .materials-editor-head-actions{
    display:flex;
    gap:12px;
    flex:0 0 auto;
}
/* pogu izskats: css/ui-kit.css (.ui-btn); šeit tikai izkārtojums */

@media (max-width:768px){
    .admin .add-3d-model.materials-editor .materials-editor-title{
        flex:1 1 100%;
        font-size:22px;
        line-height:28px;
    }
    .admin .add-3d-model.materials-editor .materials-editor-head-actions{
        flex:1 1 100%;
    }
    .admin .add-3d-model.materials-editor .materials-editor-btn{
        flex:1;
        justify-content:center;
    }
}

/* ------------------------------------------------------------------------
   Dizaina rīks (klienta puse un tas pats rīks, iegults admin "Review" iframe)
   - .design-wrap bāzes noteikums (css ~3434) uzliek padding-top:80px !important.
   Tā mērķis ir atstarpe zem vietnes fiksētās galvenes, BET rīka lapā vecāks
   (.wrap-content.worksheet-content) jau pats sākas zem galvenes (y=54), tāpēc
   šie 80px ir TUKŠA josla virs canvas - tieši tā, ko admin redzēja kā pelēku
   joslu virs apdrukas laukuma un kas atņēma canvas augstumu.
   Pārbaudīts: joslā 54..134 kreisajā (canvas) kolonnā nav NEVIENA elementa;
   "Design/Preview" cilnes ir galvenē (y=5, h=44), bet Settings/Next ir labajā
   panelī, kas ir position:fixed un no šī paddinga nav atkarīgs.

   Mērķēts šauri, lai neskartu pārējās lapas, kas lieto to pašu .design-wrap:
   - body:not(.admin) izslēdz VISAS admin lapas, ieskaitot edit_print_area
     (tā arī uzstāda ADD_TO_BODY_CLASS('admin'));
   - section izslēdz templates/catalog/design.htm.inc, kur tas ir <div>;
   - :has(> .design-content) pieprasa tieši rīka izkārtojumu.
   ------------------------------------------------------------------------ */
body:not(.admin) section.design-wrap:has(> .design-content){
    padding-top:0 !important;
}


/* ------------------------------------------------------------------------
   Dizaina rīka izkārtojums pēc Figma (node 112-21406):
   - labās puses "Settings" panelis ir PILNĀ lapas augstumā (no augšas līdz
     apakšai), nevis iespiests starp galveni un apakšējo joslu;
   - galvene (Design/Preview) un apakšējā josla (undo/redo/reset + zoom) ir
     TIKAI virs/zem canvas, nevis pāri visam logam.

   Bāzē galvene (css ~606) un kājene (css ~3365) ir width:100%, bet panelis
   ir position:fixed; top:54px; bottom:100px (css ~909) - tieši tāpēc panelis
   sākās zem galvenes un beidzās virs kājenes.

   Canvas laukuma izmērs NEMAINĀS: .design-side dzīvo iekšā
   .wrap-content.worksheet-content (top:54px; bottom:100px) un par galvenes/
   kājenes platumu nav atkarīgs.

   Mērķēts šauri:
   - body:not(.admin) izslēdz visas admin lapas (tām ir cita galvene/kājene -
     top_admin / top_edit_print_area / footer_admin). Rīks admin "Review"
     iframe iekšienē ir TĀ PATI publiskā lapa bez .admin klases, tāpēc arī
     tur izkārtojums sakrīt ar Figma - kā vajag;
   - @media (min-width:769px) - zem 768px panelis kļūst par pilna platuma
     apakšējo paneli (sk. @media max-width:768 ~5590), tad nobīde nav vajadzīga.
   ------------------------------------------------------------------------ */
@media (min-width: 769px){
    /* ⚠️ Platumu regulē ar right:530px, NEVIS width:calc(100% - 530px).
       Ar calc() Chrome animācija starp calc(100% - 530px) un 100% apstājas
       pusceļā un josla paliek "iestrēgusi" starpplatumā (nomērīts: 1030px
       1451px loga vietā). right: starp 530px un 0px ir parasta garuma
       interpolācija un strādā pareizi. */
    body:not(.admin) .header-wrap.header-wrap-worksheet,
    body:not(.admin) .footer-worksheet{
        width: auto;
        left: 0;
        right: 530px;
        transition: right 0.4s linear;
    }
    /* Panelis aizvērts ar "Settings X" - joslas atgūst visu platumu.
       ⚠️ Stāvokli nolasām no klases uz <body> (to uzliek jvs/js.js
       syncToolsCollapsedClass()), NEVIS ar :has(... .collapsed). Nomērīts:
       Chrome atpazīst body.matches(':has(....collapsed)') kā true, bet
       aprēķinātais stils NETIEK pārrēķināts, kamēr kaut kas cits nepiespiež
       pilnu recalc - josla paliek sašaurināta, lai gan panelis jau ir aizvērts. */
    body:not(.admin).tools-collapsed .header-wrap.header-wrap-worksheet,
    body:not(.admin).tools-collapsed .footer-worksheet{
        right: 0;
    }
    /* ⚠️ Un TAS PATS canvas laukumam - citādi "Settings X" nedod neko.
       .design-side bāzes noteikumā (css ~3490) ir fiksēts right:530px, tāpēc
       panelim aizslīdot, tie 530px palika rezervēti tukšumam: nomērīts, ka
       canvas platums bija 921px gan ar atvērtu, gan ar aizvērtu paneli.
       Mobilajam skatam tas pats jau sen darīts ar .mobile-view .design-side
       (css ~1130) - šis ir tā desktop ekvivalents.
       Pārmērīšanu pārējais kods paveic pats: 2D canvas pārrēķinās caur
       ResizeObserver uz .design-side (design/main.js observeDesignSideResize),
       3D skats - caur tādu pašu novērotāju (design/utils/environment.js). */
    body:not(.admin).tools-collapsed .design-side{
        right: 0;
    }
    body:not(.admin) .navigation-content.navigation-worksheet-tools{
        top: 0;
        bottom: 0;
        /* Galvene un kājene ir baltas tāpat kā panelis - bez šīs līnijas
           augšā un apakšā tie saplūstu vienā baltā laukumā (Figma tā pati
           vertikālā atdalītājlīnija iet cauri visam augstumam). */
        border-left: 1px solid #E1E5EA;
        box-sizing: border-box;
    }
    /* Panelim sākoties y=0, "Settings" poga (absolūta pret paneli, top:10px)
       aizslīdētu galvenes joslā; paturam to tieši tur, kur bija (54+10). */
    body:not(.admin) .navigation-worksheet-tools-switch{
        top: 64px;
    }
}


/* ------------------------------------------------------------------------
   DIZAINA RĪKA IELĀDES AIZSEGS (markup: templates/3d/design.htm.inc,
   loģika: design/utils/loadingOverlay.js)

   Aizsedz VISU rīku (canvas + labo paneli), kamēr tas tiek būvēts. Vecāks
   .wrap-content.worksheet-content ir position:fixed, tāpēc inset:0 te sedz
   tieši rīka laukumu, neaiztiekot galveni un apakšējo joslu.
   ------------------------------------------------------------------------ */
.design-loading{
    /* ⚠️ position:fixed pret LOGU, nevis absolute pret .wrap-content.
       Iemesls: labais panelis ir position:fixed; top:0 (pilnā augstumā),
       bet .wrap-content sākas pie y=54 - ar absolute paneļa augšējā josla
       (puses izvēle + Next) izspraucās aizsegam CAURI. Nomērīts: panelis
       0..910, aizsegs 54..858. Tāpēc sedzam visu logu. */
    position:fixed;
    left:0; top:0; right:0; bottom:0;
    /* Virs galvenes (.header-wrap-worksheet z-index:999). */
    z-index:1000;
    /* Divas kolonnas kā pašā rīkā: canvas laukums + 530px panelis.
       align-items:stretch (nevis center), lai abas kolonnas aizpilda visu
       augstumu - citādi paneļa baltais laukums saruktu līdz satura augstumam. */
    display:flex;
    align-items:stretch;
    /* Tāda pati pelēkā kā canvas laukumam, lai brīdī, kad aizsegs pazūd,
       fons nemirgotu. Labās puses balto paneļa joslu sk. zemāk. */
    background:#E1E5EA;
    opacity:1;
    visibility:visible;
    transition:opacity 0.3s linear, visibility 0s linear 0.3s;
    /* ⚠️ OTRS, NO JS NEATKARĪGS DROŠINĀTĀJS. Ja JS vispār neizpildās
       (sintakses kļūda, bloķēts skripts), loadingOverlay.js taimeris
       nepalaistos un lietotājam paliktu pilnīgi bloķēts ekrāns - sliktāk
       nekā nekāda aizsega. Šī animācija ar 60s aizkavi to noņem arī tad.
       Normālā gaitā aizsegu jau sen būs noņēmis JS (45s taimeris vai
       gatavības notikums). */
    animation:design-loading-failsafe 0.3s linear 180s forwards;
}
@keyframes design-loading-failsafe{
    to{ opacity:0; visibility:hidden; }
}
.design-loading.is-hidden{
    opacity:0;
    visibility:hidden;
    pointer-events:none;
}

/* --- Kreisā (canvas) kolonna ------------------------------------------- */
.design-loading-canvas{
    position:relative;
    flex:1 1 auto;
    min-width:0;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:28px;
    padding:24px;
    box-sizing:border-box;
}
/* Produkta siluets TIEŠI tur, kur pēc brīža būs produkts. Attēls ir tas pats
   automātiski no 3D modeļa renderētais fons uz caurspīdīga (~100 KB pret
   modeļa ~2 MB), tāpēc pietiek to noklusināt līdz vienkrāsainam siluetam,
   nevis zīmēt kaut ko no jauna. brightness(0) padara necaurspīdīgos pikseļus
   melnus, opacity tos atšķaida; caurspīdīgā apmale paliek caurspīdīga. */
.design-loading-silhouette{
    max-width:min(62%, 520px);
    max-height:52%;
    object-fit:contain;
    filter:brightness(0);
    /* Liels laukums, tāpēc pulsācija daudz smalkāka nekā klucīšiem. */
    animation:design-sk-pulse-soft 1.6s ease-in-out infinite;
}
@keyframes design-sk-pulse-soft{
    0%,100%{ opacity:0.10; }
    50%{ opacity:0.18; }
}
.design-loading-status{
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:14px;
    max-width:320px;
    text-align:center;
}
/* Ar siluetu gredzens ir lieks - siluets pats rāda, kas ielādējas. Bez
   silueta (2D produkti, kam auto fona nav) gredzens paliek. */
.design-loading-silhouette + .design-loading-status .lds-ring{ display:none; }
.design-loading-text{
    font-size:15px;
    font-weight:600;
    color:#15191E;
}
.design-loading-progress{
    width:220px;
    max-width:100%;
    height:4px;
    border-radius:2px;
    background:#C3CBD5;
    overflow:hidden;
}
.design-loading-bar{
    height:100%;
    width:0;
    border-radius:2px;
    background:var(--brand-accent, #9A2F58);
    transition:width 0.2s linear;
}
/* Kad Content-Length nav zināms vai notiek sagatavošana (parsēšana, tekstūru
   cepšana) - reālu procentu nav, tāpēc rādām kustīgu joslu, nevis izdomātu
   skaitli. */
.design-loading-bar.is-indeterminate{
    width:40%;
    transition:none;
    animation:design-loading-slide 1.1s ease-in-out infinite;
}
@keyframes design-loading-slide{
    0%{ transform:translateX(-110%); }
    100%{ transform:translateX(275%); }
}
.design-loading-percent{
    font-size:13px;
    color:#6D7F9F;
    min-height:16px;
}

/* --- Labā (paneļa) kolonna --------------------------------------------- */
/* Izmēri NOMĒRĪTI no īstā paneļa, lai brīdī, kad aizsegs pazūd, saturs ieņemtu
   tieši to pašu vietu un nekas nelēktu: panelis 530px, iekšējais padding 20px,
   augšējā rinda 71px (lauks 420x40 + Next 59x40), tad ciļņu rinda ar apakšējo
   līniju, tad "Add design" kartīte. */
.design-loading-panel{
    flex:0 0 530px;
    background:#FFFFFF;
    border-left:1px solid #E1E5EA;
    box-sizing:border-box;
    padding:0 20px;
    display:flex;
    flex-direction:column;
}
.design-loading-panel-top{
    display:flex;
    align-items:center;
    gap:10px;
    height:71px;
    flex:0 0 auto;
}
.design-loading-panel-tabs{
    display:flex;
    align-items:center;
    justify-content:space-around;
    height:58px;
    flex:0 0 auto;
    border-bottom:1px solid #E1E5EA;
}
.design-loading-panel-body{
    padding-top:24px;
}
.design-sk{
    display:block;
    background:#E1E5EA;
    border-radius:4px;
    animation:design-sk-pulse 1.6s ease-in-out infinite;
}
.design-sk-select{ flex:1 1 auto; height:40px; border-radius:6px; }
.design-sk-next{ flex:0 0 59px; height:40px; border-radius:6px; }
.design-sk-tab{ width:74px; height:14px; }
.design-sk-card{ height:88px; border-radius:8px; }
@keyframes design-sk-pulse{
    0%,100%{ opacity:0.55; }
    50%{ opacity:1; }
}

/* --- Admin: Printing methods (drukāšanas tipi) --------------------------- */
.admin-pm-page{ max-width:1100px; margin:24px auto 48px; padding:0 16px; }
.admin-pm-page .add-product-top{ display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; margin-bottom:12px; }
.admin-pm-page .add-product-top h1{ margin:0; }
.admin-pm-intro{ color:#6D7F9F; font-size:14px; margin:0 0 14px; }
.admin-pm-back{ font-size:13px; color:#6D7F9F; text-decoration:none; }
.admin-pm-card{ background:#fff; border:1px solid #E1E5EA; border-radius:8px; margin-bottom:12px; }
.admin-pm-section{ padding:16px 20px; }
.admin-pm-section h3{ margin:0 0 10px; font-size:16px; }
.admin-pm-sec-h{ display:flex; align-items:center; justify-content:space-between; margin-bottom:8px; }
.admin-pm-sec-h h3{ margin:0; }
.admin-pm-flash{ background:#E4F4E9; color:#1E7A3C; border-radius:6px; padding:9px 14px; margin-bottom:12px; font-size:14px; }
.admin-pm-flash-error{ background:var(--brand-accent-tint, #FBEFF3); color:#B3261E; }
/* saraksts */
.admin-pm-row{ display:grid; grid-template-columns:minmax(0,1.5fr) minmax(0,1.3fr) minmax(0,1.7fr) minmax(0,1.1fr) 70px 80px minmax(0,1.6fr); gap:8px; align-items:center; padding:12px 18px; border-bottom:1px solid #E1E5EA; font-size:14px; }
.admin-pm-row:last-child{ border-bottom:0; }
.admin-pm-head{ font-size:12px; color:#6D7F9F; font-weight:500; padding-top:10px; padding-bottom:10px; }
.admin-pm-name a{ color:#15191E; font-weight:600; text-decoration:none; }
.admin-pm-name a:hover{ color:var(--brand-accent, #9A2F58); }
.admin-pm-badge{ margin-left:8px; font-size:11px; background:#EEF1F5; color:#6D7F9F; border-radius:10px; padding:1px 8px; }
.admin-pm-chip{ display:inline-block; background:#EEF1F5; border-radius:12px; padding:2px 9px; font-size:12px; margin-right:4px; }
.admin-pm-chip.on{ background:var(--brand-accent-tint, #FBEFF3); color:var(--brand-accent, #9A2F58); }
.admin-pm-pill{ display:inline-block; border-radius:12px; padding:2px 10px; font-size:12px; font-weight:600; }
.admin-pm-pill.on{ background:#E4F4E9; color:#1E7A3C; }
.admin-pm-pill.off{ background:#EEF1F5; color:#6D7F9F; }
.admin-pm-actions{ display:flex; gap:10px; justify-content:flex-end; flex-wrap:wrap; }
.admin-pm-actions form{ margin:0; }
.admin-pm-link{ background:none; border:0; padding:0; font:inherit; font-size:13px; color:var(--brand-accent, #9A2F58); cursor:pointer; text-decoration:none; }
.admin-pm-link:hover{ text-decoration:underline; }
/* Rindas darbību pogas - tāda pati forma kā .btn pārējos skatos, tikai kompaktākas */
.admin-pm-link-danger{ color:#B3261E; }
/* forma */
.admin-pm-grid{ display:grid; grid-template-columns:minmax(0,1fr) 340px; gap:14px; align-items:start; }
.admin-pm-prods{ display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:12px; }
.admin-pm-top-actions{ display:flex; gap:8px; }
.admin-pm-field{ display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin:10px 0; }
.admin-pm-field > label:first-child{ min-width:190px; font-size:14px; }
.admin-pm-field input.ui-input[type=text]{ width:min(100%, 320px); }
.admin-pm-field select.ui-select{ width:auto; min-width:160px; }
.ui-input.admin-pm-short{ width:96px; }
.ui-select.admin-pm-short{ width:auto; min-width:96px; }
.admin-pm-checks{ display:flex; flex-wrap:wrap; gap:6px 14px; }
.admin-pm-checks-cols{ display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:10px 18px; width:100%; }
.admin-pm-checks-cols .admin-pm-check{ min-width:0; }
.admin-pm-check-font span{ font-size:17px; line-height:1.3; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
@media (max-width:700px){ .admin-pm-checks-cols{ grid-template-columns:repeat(2, minmax(0, 1fr)); } }
.admin-pm-hint{ color:#6D7F9F; font-size:12px; width:100%; }
.admin-pm-prod{ display:flex; flex-direction:column; gap:4px; padding:8px; border:1px solid #E1E5EA; border-radius:6px; background:#fff; font-size:13px; min-width:0; }
.admin-pm-prod-img{ aspect-ratio:1 / 1; border-radius:4px; background:#F0F2F4; overflow:hidden; }
.admin-pm-prod-img img{ width:100%; height:100%; object-fit:cover; display:block; }
.admin-pm-prod-name{ font-weight:600; line-height:1.3; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; word-break:break-word; }
.admin-pm-prod .admin-pm-hint{ width:auto; }
.admin-pm-switch{ position:relative; display:inline-block; width:38px; height:22px; flex:0 0 38px; }
.admin-pm-switch input{ opacity:0; width:0; height:0; position:absolute; }
.admin-pm-switch span{ position:absolute; inset:0; background:#C3CBD5; border-radius:11px; transition:background .15s; cursor:pointer; }
.admin-pm-switch span:after{ content:""; position:absolute; left:3px; top:3px; width:16px; height:16px; border-radius:50%; background:#fff; transition:left .15s; }
.admin-pm-switch input:checked + span{ background:var(--brand-accent, #9A2F58); }
.admin-pm-switch input:checked + span:after{ left:19px; }
/* Addons un Settings (sk. inc/features.php) */
/* Vispārīgais noteikums (.admin .add-product-top bez soļiem = paslēpts) neattiecas uz šīm lapām: tām virsraksts un pogas (Save / Add) ir vajadzīgas */
body.admin .admin-pm-page .add-product-top{ display:flex; }
body.admin .admin-pm-page .add-product-top h1{ display:block; font-size:24px; line-height:30px; text-align:left; font-weight:600; margin:0; padding:0; }
.admin-addon-h{ font-size:16px; margin:22px 0 10px; }
.admin-addon-grid{ display:grid; grid-template-columns:repeat(auto-fill, minmax(290px, 1fr)); gap:14px; }
.admin-addon-card{ background:#fff; border:1px solid #E1E5EA; border-radius:10px; padding:16px; display:flex; flex-direction:column; gap:10px; min-width:0; scroll-margin-top:90px; }
.admin-addon-card.is-on{ border-color:var(--brand-accent, #9A2F58); }
.admin-addon-card.is-soon{ background:#F7F8FA; }
.admin-addon-card.is-soon .admin-addon-title, .admin-addon-card.is-soon .admin-addon-desc{ opacity:.7; }
.admin-addon-head{ display:flex; align-items:center; gap:10px; }
.admin-addon-ico{ width:36px; height:36px; flex:0 0 36px; border-radius:9px; display:flex; align-items:center; justify-content:center; font-weight:700; background:var(--brand-accent-tint, #FBEFF3); color:var(--brand-accent, #9A2F58); }
.admin-addon-title{ font-weight:600; font-size:15px; line-height:1.25; flex:1 1 auto; min-width:0; }
.admin-addon-badge{ font-size:11px; font-weight:400; border-radius:20px; padding:3px 9px; background:#E9EDF2; color:#5B6B80; white-space:nowrap; }
.admin-addon-badge.on{ background:#E4F4E9; color:#1E7A3C; }
.admin-addon-badge.soon{ background:#EEF1F5; color:#6D7F9F; }
.admin-addon-desc{ margin:0; font-size:13px; line-height:1.5; color:#4A5A70; }
.admin-addon-usage{ font-size:12px; color:#6D7F9F; }
.admin-addon-form{ display:flex; align-items:center; gap:10px; margin-top:auto; }
.admin-addon-switch-label{ font-size:13px; color:#4A5A70; }
.admin-addon-note{ font-size:12px; color:#6D7F9F; margin-top:auto; }
.admin-set-warn{ color:#B3261E; }
.admin-set-links{ display:grid; grid-template-columns:repeat(auto-fill, minmax(260px, 1fr)); gap:12px; }
.admin-set-link{ display:flex; flex-direction:column; gap:4px; background:#fff; border:1px solid #E1E5EA; border-radius:10px; padding:14px 16px; text-decoration:none; color:inherit; }
.admin-set-link:hover{ border-color:var(--brand-accent, #9A2F58); }
.admin-set-link b{ font-size:14px; }
.admin-set-link span{ font-size:12px; color:#6D7F9F; line-height:1.45; }
/* produktu saraksta kolonna "Printing method" (kad sadaļa ir ieslēgta) */
.admin .add-product-container .designs-list.has-print-method:not(.orders-list) .row{
  grid-template-columns: 70px 80px minmax(0,0.7fr) minmax(0,1.5fr) minmax(0,0.9fr) minmax(0,0.9fr) minmax(0,0.9fr) minmax(0,1.3fr) 56px 56px;
}
/* mobilajā skatā šis desktopa 10 kolonnu režģis (augstāka specifika nekā mobilais noteikums) saspieda nosaukumu ~8px platumā -> atpakaļ uz karšu izkārtojumu */
@media (max-width:768px){
  .admin .add-product-container .designs-list.has-print-method:not(.orders-list) .row{ grid-template-columns:44px 52px minmax(0,1fr); }
  .admin .add-product-container .designs-list .row .row-checkbox{ width:auto; flex:none; }
  /* galvene: logo + tukšs elements + konta čips + hamburgers kopā bija ~426px pie 390px ekrāna -> hamburgers izbīdījās ārpus ekrāna un parādījās horizontāla ritināšana */
  .admin .header-worksheet-tools-block .header-worksheet-tools{ display:none; }
  .admin .header-worksheet-tools-block .header-worksheet-home{ flex:0 1 auto; min-width:0; max-width:calc(100% - 120px); }
  .admin .header-worksheet-tools-block .header-worksheet-home svg{ max-width:100%; height:auto; }
  .admin .header-worksheet-tools-block .header-worksheet-save{ flex:1 1 auto; min-width:0; justify-content:flex-end; }
  .admin .admin-account-name{ max-width:64px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  @media (max-width:420px){ .admin .admin-account-name{ display:none; } }
  /* mazākas atstarpes no malām mobilajā: bija 16px (design-wrap) + 16px (lapa) + kartes iekšējā = ~48px katrā pusē; tagad ~8+6+14 */
  .admin .design-wrap{ padding-left:8px !important; padding-right:8px !important; }
  .admin .admin-pm-page, .admin .admin-profile-page, .admin .admin-int-page{ padding-left:6px; padding-right:6px; }
  .admin .admin-int-step, .admin .admin-acct-card{ padding-left:14px; padding-right:14px; }
  .admin .add-product-container, .admin .add-3d-model{ padding:8px; }
  /* flex elementi ar min-width:auto izstiepās pēc iekšējā satura (sākuma lapā ~421px pie 360px ekrāna) */
  .admin main.main-content, .admin main.main-content > .design-wrap{ min-width:0; max-width:100%; }
  html, body.admin{ max-width:100%; }
  @supports (overflow:clip){ html, body.admin{ overflow-x:clip; } }
  /* filtru rinda: lauki visā platumā (desktopa align-items:flex-end / select{width:auto} bija specifiskāki par mobilo noteikumu) */
  .admin .add-product-container .designs-list-toolbar{ flex-direction:column; align-items:stretch; }
  .admin .add-product-container .designs-list-toolbar select.ui-select,
  .admin .add-product-container .designs-list-toolbar .bulk-actions,
  .admin .add-product-container .designs-list-toolbar .bulk-actions-trigger{ width:100%; max-width:none; min-width:0; box-sizing:border-box; }
  .admin .add-product-container .designs-list-toolbar .designs-search-wrap{ flex:none; width:100%; max-width:none; margin-left:0; }
  /* abas darbību ikonas (publicēšanas iestatījumi un ⋮) vienā rindā, nevis katra savā rindā */
  .admin .add-product-container .designs-list .row > div.row-publish:not(.row-checkbox):not(.col-image):not(.col-name){ grid-column:1 / 3; justify-content:flex-start; border-top:1px solid var(--ui-line,#E7EAEE); }
  .admin .add-product-container .designs-list .row > div.row-actions:not(.row-checkbox):not(.col-image):not(.col-name){ grid-column:3; justify-content:flex-end; border-top:1px solid var(--ui-line,#E7EAEE); }
}
.admin .add-product-container .designs-list .row .col-print-method select.ui-select{ width:100%; max-width:230px; }
.admin .add-product-container .designs-list .row .col-print-method select.is-saving{ opacity:.5; }
@media (max-width:900px){
    .admin-pm-grid{ grid-template-columns: minmax(0, 1fr); }
    .admin-pm-row{ grid-template-columns:1fr 1fr; }
    .admin-pm-head{ display:none; }
    .admin-pm-actions{ grid-column:1 / -1; justify-content:flex-start; }
}

/* --- Admin Review skats: skelets, kamēr iframe ar rīku ielādējas ----------- */
/* Skelets ir ZEM iframe (z-index 0 pret 1), tāpēc rīka paša ielādes aizsegs,
   tiklīdz iframe dokuments sāk zīmēties, to pārklāj. Līdz tam (lēns pieslēgums,
   iframe HTML vēl nav atnācis) iframe ir caurspīdīgs un skelets redzams. */
.design-preview-iframe{ position:relative; }
.design-preview-skeleton{
    position:absolute;
    left:0; top:0; right:0; bottom:0;
    z-index:0;
    display:flex;
    align-items:stretch;
    background:#E1E5EA;
}
.design-preview-skeleton.is-hidden{ display:none; }
/* studio izkārtojums: rīka panelis ir kreisajā pusē (design/layouts/studio.css). Admin skelets nedrīkst sākt ar paneli labajā pusē un tad pārlēkt */
html.tool-layout-studio .design-preview-skeleton .design-loading-panel{ order:1; flex:0 0 calc(clamp(330px, 27vw, 400px) + 72px); border-left:0; border-right:1px solid #E1E5EA; padding:0 16px; }
html.tool-layout-studio .design-preview-skeleton .design-loading-canvas{ order:2; }
.design-preview-iframe iframe{ position:relative; z-index:1; }
/* Šaurā skatā labā paneļa (530px) skelets neietilptu; paliek tikai ielādes
   statuss. */
@media (max-width:768px){
    .design-preview-skeleton .design-loading-panel{ display:none; }
}

/* --- Eksporta progresa logs (Download PDF / PNG) -------------------------- */
/* Pārklāj visu logu (tāpat kā .design-loading), lai lietotājs nevar nospiest
   neko citu un skaidri redz, ka notiek darbība. Zem .design-loading (1000)
   nav jābūt - tas tiek rādīts tikai pēc ielādes. */
.design-export{
    display:none;
    position:fixed;
    left:0; top:0; right:0; bottom:0;
    z-index:1001;
    align-items:center;
    justify-content:center;
    background:rgba(21, 25, 30, 0.45);
}
.design-export.is-visible{ display:flex; }
.design-export-card{
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:12px;
    width:360px;
    max-width:calc(100% - 32px);
    box-sizing:border-box;
    padding:28px 24px 24px;
    border-radius:12px;
    background:#FFFFFF;
    text-align:center;
    box-shadow:0 12px 40px rgba(21, 25, 30, 0.25);
}
.design-export .lds-ring{ width:56px; height:56px; }
.design-export .lds-ring div{
    width:44px; height:44px; margin:6px;
    border-color:var(--brand-accent, #9A2F58) transparent transparent transparent;
}
.design-export .lds-ring div.bg{ border-color:#EBECF0; }
.design-export-title{
    font-size:17px;
    font-weight:700;
    color:#15191E;
}
.design-export-step{
    font-size:14px;
    color:#15191E;
    min-height:20px;
}
.design-export .design-loading-progress{ width:100%; height:6px; border-radius:3px; }
.design-export .design-loading-bar{ border-radius:3px; }
.design-export-meta{
    display:flex;
    justify-content:space-between;
    width:100%;
    font-size:13px;
    color:#6D7F9F;
    min-height:16px;
}
/* Paskaidrojums parādās tikai tad, kad darbība ievelkas (JS pieliek .is-shown
   pēc dažām sekundēm) - īsam eksportam tas būtu lieks troksnis. */
.design-export-note{
    font-size:13px;
    color:#6D7F9F;
    min-height:0;
    opacity:0;
    transition:opacity 0.3s linear;
}
.design-export-note.is-shown{ opacity:1; min-height:34px; }
.design-export-cancel{
    margin-top:4px;
    padding:6px 10px;
    border:0;
    background:none;
    font-size:13px;
    color:#6D7F9F;
    text-decoration:underline;
    cursor:pointer;
}
.design-export-cancel:hover{ color:#15191E; }
.design-export.is-error .design-export-cancel{ display:none; }
/* .btn nosaka savu display, tāpēc selektors ar augstāku specifiskumu. */
.design-export .design-export-close{ display:none; }
.design-export.is-error .design-export-close{ display:inline-block; }
.design-export.is-error .lds-ring,
.design-export.is-error .design-loading-progress,
.design-export.is-error .design-export-meta,
.design-export.is-error .design-export-note{ display:none; }
/* Kļūdas tehniskais iemesls (piem. "HTTP 500") - sīks, bet redzams, lai lietotājs
   var to nosūtīt atbalstam. */
.design-export-detail{
    display:none;
    max-width:100%;
    font-size:12px;
    color:#6D7F9F;
    word-break:break-word;
}
.design-export.is-error .design-export-detail:not(:empty){ display:block; }
.design-export.is-error .design-export-step{ color:#B3261E; font-weight:600; }

/* Zem 769px labais panelis ir pilna platuma apakšējais panelis, nevis kolonna
   - tad paneļa skeletons nav vajadzīgs un canvas daļa aizņem visu. */
@media (max-width:768px){
    .design-loading-panel{ display:none; }
    .design-loading-silhouette{ max-width:72%; max-height:44%; }
}

/* ------------------------------------------------------------------------
   CIĻŅU FOUC. .design-objects-content .tabs-stage > div paneļus paslēpj TIKAI
   JS (sk. cls_catalog_control.php "Change tab class and display content"),
   un CSS noteikums .left-navigation .tabs-stage > div{} ir TUKŠS - tāpēc līdz
   jQuery ready izpildei visi trīs paneļi ("Add design", "Upload logo or
   image", "Presets") bija redzami vienā kaudzē.
   Pēc noklusējuma rādām tikai pirmo; JS .show()/.hide() uzliek inline stilu,
   kas šo pārraksta, tāpēc ciļņu pārslēgšana strādā kā līdz šim.
   ------------------------------------------------------------------------ */
.design-objects-content .tabs-stage > div{ display:none; }
.design-objects-content .tabs-stage > div:first-child{ display:block; }
.tabs-library-wrap .tabs-library-stage > div{ display:none; }
.tabs-library-wrap .tabs-library-stage > div:first-child{ display:block; }


/* ------------------------------------------------------------------------
   RĪKJOSLAS POGAS BEZ DARBĪBAS (undo / redo / reset / zoom)
   Klasi uzliek design/functions.js refreshToolbarState() tieši tad, kad
   pogas klikšķa apstrādātājs tik un tā izlēktu ārā (tukša vēsture, sasniegta
   zoom robeža). Līdz šim visas piecas izskatījās vienādi aktīvas, un
   klikšķis, kas klusi neko nedara, lietotājam izskatījās pēc salauzta rīka.
   pointer-events:none noņem arī cursor:pointer, kas pogām ir inline stilā
   (sk. templates/html/footer_worksheet.htm.inc) - citādi kursors solītu
   darbību, kuras nav.
   ------------------------------------------------------------------------ */
.footer-worksheet .tool-btn-disabled{
    opacity:0.35;
    pointer-events:none;
}


/* Admin mobilā izvēlnes poga atver #admin-sidebar, bet ne visām admin lapām
   sānjosla ir (design_preview.htm.inc - Review solis - ir bez tās). Tur poga
   klusi nedarīja neko. Galvene ir kopīga, tāpēc pogu no šablona izņemt nevar;
   paslēpjam to tieši tajās lapās, kur nav ko atvērt. Šis noteikums novērš
   nomirgošanu; pašu pogu izņem skripts templates/html/top_admin.htm.inc, kas
   strādā arī tur, kur :has() nav atbalstīts. */
body:not(:has(#admin-sidebar)) .admin-mobile-menu-toggle{ display:none !important; }


/* ------------------------------------------------------------------------
   IELĀDES AIZSEGS ADMIN 3D SKATĀ (markup + loģika:
   templates/3d/admin/design_3dmodel.htm.inc)

   Lieto TĀS PAŠAS .design-loading* / .design-sk* klases, kas publiskais rīks,
   lai nav divu atšķirīgu aizsegu izskatu. Atšķiras tikai novietojums un
   kolonnu secība:
   - publiskajā rīkā aizsegs ir position:fixed pāri visam logam;
   - šeit tas sedz TIKAI .sides_3dmodel (nomērīts: 1038x640 pie y=253), jo
     admin galvene, soļu josla un sānjosla renderējas uzreiz;
   - admin kolonnas ir otrādi: vadīklas pa kreisi (427px), 3D pa labi.
   ------------------------------------------------------------------------ */
.design-loading.design-loading-admin{
    position:absolute;
    left:0; top:0; right:0; bottom:0;
    z-index:5;
    display:flex;
    align-items:stretch;
    /* Skeletons ir dekoratīvs - ja tā saturs neietilpst konteinerī, to labāk
       apgriezt nekā ļaut izplūst pāri malām uz reālā satura. */
    overflow:hidden;
    /* Admin kartīte ir balta, nevis pelēka kā rīka canvas laukums. */
    background:#FFFFFF;
}
.design-loading-admin-panel{
    /* 427px = reālās "Sides list" kolonnas platums (nomērīts). */
    flex:0 0 427px;
    display:flex;
    flex-direction:column;
    gap:14px;
    padding:20px 20px 20px 0;
    box-sizing:border-box;
}
.design-loading-admin .design-loading-canvas{
    /* Pelēkais 3D panelis - tāds pats fons, kāds tur būs pēc ielādes. */
    background:#E1E5EA;
    border-radius:6px;
    margin:20px 0;
}
/* Neitrāls klucis 3D skatuves vietā. Šajā solī produkta attēla vēl nav - tas
   top vēlāk no paša modeļa - tāpēc siluetu, kā publiskajā rīkā, te rādīt nav
   no kā. 500x500 = reālais threejs-container izmērs (nomērīts). */
.design-sk-stage{
    width:min(500px, 70%);
    height:min(500px, 60%);
    aspect-ratio:1 / 1;
    border-radius:8px;
    /* ⚠️ Tumšāks par .design-loading-canvas fonu. Ar koplietoto .design-sk
       pelēko (#E1E5EA) klucis saplūda ar 3D paneļa fonu, kas ir tieši tāds
       pats, un skatuves vieta nebija saredzama vispār. */
    background:#D3D9E0;
}
.design-sk-heading{ width:150px; height:26px; }
.design-sk-row{ height:52px; border-radius:6px; }
/* .design-sk-card / -select / -next / pulsācija nāk no publiskā rīka blokā
   augstāk - te tās tikai lietojam. */
.design-loading-admin .design-sk-card{ height:74px; }

/* Šaurā skatā admin kolonnas krīt viena zem otras - skeletons dara to pašu,
   lai tas joprojām rāda, KUR kas parādīsies, nevis pazūd. Vadīklu daļa augšā
   (bez fiksētā 427px platuma), 3D klucis zem tās. */
@media (max-width:980px){
    .design-loading.design-loading-admin{
        flex-direction:column;
    }
    .design-loading-admin-panel{
        flex:0 0 auto;
        padding:16px 0;
    }
    .design-loading-admin .design-loading-canvas{
        /* min-height:0, lai 3D daļa aizņem TO, KAS PĀRI, nevis pieprasa savu
           augstumu un izstumj skeletonu ārpus aizsega rāmja. */
        flex:1 1 auto;
        min-height:0;
        margin:0 0 16px 0;
    }
    /* ⚠️ Šaurumā atsevišķs skatuves klucis nav vajadzīgs un arī neietilpst:
       ar aspect-ratio 1:1 tas gribēja 309px augstumu 260px vietā un pārplūda
       pāri paneļa rindām virs sevis. Te pats pelēkais .design-loading-canvas
       jau ir 3D laukuma vietturis, tāpēc klucis iekšā tajā ir lieks. */
    .design-loading-admin .design-sk-stage{
        display:none;
    }
    /* ⚠️ Gredzens ir 120x120 un kopā ar tekstu, joslu un procentiem prasa
       ~200px, bet šaurā skatā 3D daļai paliek ~190px - nomērīts, ka statuss
       izlīda ārpus aizsega. Gredzenu noņemam, procentus un joslu paturam:
       tieši tie pasaka, cik tālu ielāde ir tikusi. */
    .design-loading-admin .lds-ring{
        display:none;
    }
}


/* ------------------------------------------------------------------------
   3D MODEĻA SKATS AIZPILDA LAPAS AUGSTUMU

   Nomērīts: .admin-page-body un .admin-page-content sniedzas līdz 910
   (lapas apakšai), bet .add-3d-model beidzās 874, un iekšpusē canvas
   konteiners bija 500px pie 600px .sides_3dmodel - neviens posms nestiepās,
   tāpēc apakšā palika neizmantota josla. Šajā skatā nav undo/redo kājenes,
   kas to aizpildītu, kā tas ir publiskajā rīkā.

   Ķēde jāsavieno visā garumā, citādi stiepšanās apstājas pirmajā posmā, kam
   nav flex. Mērķēts ar :has(.sides-3dmodel-matching), lai pārējās admin
   lapas (produktu saraksts, pasūtījumi), kas lieto to pašu .admin-page-content
   un .add-3d-model, paliek neskartas.
   ------------------------------------------------------------------------ */
@media (min-width:769px){
    .admin .admin-page-content:has(.sides-3dmodel-matching){
        display:flex;
        flex-direction:column;
    }
    .admin .admin-page-content:has(.sides-3dmodel-matching) .add-3d-model{
        flex:1 1 auto;
        min-height:0;
    }
    .sides_3dmodel.sides-3dmodel-matching{
        flex:1 1 auto;
        min-height:0;
        /* ⚠️ Bāzē režģim ir align-items:start, tāpēc bērni NESTIEPJAS
           vertikāli - canvas konteiners palika savā minimumā, lai gan režģis
           jau bija izaudzis. Ar stretch abas kolonnas aizpilda rindu, un
           vertikālais atdalītājs starp sarakstu un 3D skatu iet visā augstumā. */
        align-items:stretch;
    }
    /* ⚠️ Šis ir posms, kas ķēdi pārtrauca. Režģa rinda un kreisā kolonna
       stiepās pareizi (nomērīts: rinda 576px), bet .sides_3d_model_preview
       bāzē ir ar align-self:flex-start, tāpēc palika 360px, un canvas
       konteiners iekšā nevarēja izaugt lielāks par to. */
    .sides-3dmodel-matching .sides_3d_model_preview{
        align-self:stretch;
        display:flex;
        flex-direction:column;
        min-height:0;
    }
    /* ⚠️ min-height:0 un overflow:hidden te nav dekorācija. Bez tiem canvas,
       kas kļūst garāks par konteineru, to izstieptu - un tā kā canvas augstums
       tagad nāk no konteinera (sk. admin.js getAdminCanvasSize), sanāktu tā
       pati cilpa, kas agrāk sarāva canvas no 500 uz 380. */
    .sides-3dmodel-matching .sides_3d_model_canvas_container{
        flex:1 1 auto;
        min-height:0;
        overflow:hidden;
    }
}

/* ---------------------------------------------------------------------------
   Sīkdatņu piekrišana - josla + iestatījumu logs.

   Marķējums: templates/html/cookie_consent.htm.inc, uzvedība:
   jvs/cookie-consent.js. Krāsas un pogas - tās pašas, kas pārējā Upprint
   saskarnē (var(--brand-accent, #9A2F58) galvenā, #15191E teksts, #E1E5EA apmales).

   "Reject all" un "Accept all" apzināti ir VIENĀDAS pogas - atteikties jābūt
   tikpat viegli un redzami kā piekrist (EDPB 03/2022 par maldinošiem
   dizaina paņēmieniem). "Customize" ir sekundāra teksta poga.

   Visi selektori ar .cc- prefiksu un pogas ir <button> ar pilnībā savu stilu,
   jo globālie button/input noteikumi (appearance:none u.c.) citādi tiem
   pielīp dažādi dažādos skatos.
   --------------------------------------------------------------------------- */
.cc-banner{
    position:fixed;
    left:0;
    right:0;
    bottom:0;
    z-index:9000;
    box-sizing:border-box;
    padding:16px 20px;
    background:#fff;
    border-top:1px solid #E1E5EA;
    box-shadow:0 -4px 16px rgba(21,25,30,0.08);
    font-size:13px;
    line-height:19px;
    color:#15191E;
    text-align:left;
}
.cc-banner[hidden], .cc-modal[hidden]{display:none;}
.cc-banner-inner{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:24px;
    max-width:1200px;
    margin:0 auto;
}
.cc-banner-text{flex:0 1 auto;min-width:0;max-width:720px;}
.cc-banner-text p{margin:0;}
.cc-title{
    margin:0 0 4px;
    font-size:15px;
    line-height:20px;
    font-weight:600;
    color:#15191E;
}
.cc-banner a, .cc-modal a{color:var(--brand-accent, #9A2F58);text-decoration:underline;}
.cc-banner a:hover, .cc-modal a:hover{color:#15191E;}
.cc-actions{
    display:flex;
    flex:0 0 auto;
    align-items:center;
    gap:8px;
}

.cc-btn{
    -webkit-appearance:none;
    appearance:none;
    display:inline-block;
    box-sizing:border-box;
    width:auto;
    height:auto;
    min-width:0;
    margin:0;
    padding:9px 18px;
    border:1px solid transparent;
    border-radius:3px;
    background:none;
    font-family:inherit;
    font-size:14px;
    font-weight:600;
    line-height:20px;
    white-space:nowrap;
    text-align:center;
    cursor:pointer;
    transition:background-color .15s, border-color .15s, color .15s;
}
.cc-btn:focus-visible, .cc-close:focus-visible{outline:2px solid var(--brand-accent, #9A2F58);outline-offset:2px;}
.cc-btn-primary{background:var(--brand-accent, #9A2F58);border-color:var(--brand-accent, #9A2F58);color:#fff;}
.cc-btn-primary:hover{background:#15191E;border-color:#15191E;color:#fff;}
.cc-btn-secondary{background:#fff;border-color:#C9CED4;color:#15191E;}
.cc-btn-secondary:hover{background:#fff;border-color:#15191E;color:#15191E;}
.cc-btn-link{padding-left:10px;padding-right:10px;color:#15191E;text-decoration:underline;text-underline-offset:3px;}
.cc-btn-link:hover{background:none;color:var(--brand-accent, #9A2F58);}

/* Iestatījumu logs */
html.cc-modal-open, html.cc-modal-open body{overflow:hidden;}
.cc-modal{
    position:fixed;
    top:0;
    right:0;
    bottom:0;
    left:0;
    z-index:9100;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:16px;
    box-sizing:border-box;
    font-size:13px;
    line-height:19px;
    color:#15191E;
    text-align:left;
}
.cc-backdrop{position:absolute;top:0;right:0;bottom:0;left:0;background:rgba(21,25,30,0.45);}
.cc-dialog{
    position:relative;
    display:flex;
    flex-direction:column;
    box-sizing:border-box;
    width:100%;
    max-width:560px;
    max-height:100%;
    background:#fff;
    border-radius:6px;
    box-shadow:0 12px 40px rgba(21,25,30,0.25);
    outline:none;
}
.cc-dialog-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    padding:18px 20px 14px;
    border-bottom:1px solid #E1E5EA;
}
.cc-dialog-head .cc-title{margin:0;font-size:17px;line-height:22px;}
.cc-close{
    -webkit-appearance:none;
    appearance:none;
    display:flex;
    align-items:center;
    justify-content:center;
    flex:0 0 32px;
    width:32px;
    height:32px;
    margin:-6px -8px -6px 0;
    padding:0;
    border:0;
    border-radius:3px;
    background:none;
    color:#5C5F62;
    cursor:pointer;
}
.cc-close:hover{background:#F1F1F2;color:#15191E;}
.cc-dialog-body{padding:16px 20px 4px;overflow-y:auto;}
.cc-intro{margin:0 0 4px;color:#44474A;}
.cc-category{padding:14px 0;border-top:1px solid #E1E5EA;}
.cc-intro + .cc-category{border-top:0;}
.cc-category-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:16px;
}
.cc-category-title{font-size:14px;font-weight:600;color:#15191E;cursor:pointer;}
.cc-category-text{margin:4px 0 0;padding-right:60px;color:#44474A;}
.cc-always{font-size:12px;font-weight:600;color:#2E7D4F;white-space:nowrap;}
.cc-dialog-foot{
    display:flex;
    justify-content:flex-end;
    flex-wrap:wrap;
    gap:8px;
    padding:14px 20px 18px;
    border-top:1px solid #E1E5EA;
}

/* Slēdzis - īsts <input type="checkbox"> (klaviatūra, ekrāna lasītāji), tikai
   caurspīdīgs virs zīmētās sliedes. */
.cc-switch{position:relative;display:inline-block;flex:0 0 40px;width:40px;height:22px;}
.cc-switch input{
    -webkit-appearance:none;
    appearance:none;
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:100%;
    margin:0;
    opacity:0;
    cursor:pointer;
    z-index:1;
}
.cc-switch-track{
    position:absolute;
    top:0;
    right:0;
    bottom:0;
    left:0;
    border-radius:11px;
    background:#C9CED4;
    transition:background-color .15s;
}
.cc-switch-track:after{
    content:"";
    position:absolute;
    top:3px;
    left:3px;
    width:16px;
    height:16px;
    border-radius:50%;
    background:#fff;
    box-shadow:0 1px 2px rgba(21,25,30,0.25);
    transition:transform .15s;
}
.cc-switch input:checked + .cc-switch-track{background:var(--brand-accent, #9A2F58);}
.cc-switch input:checked + .cc-switch-track:after{transform:translateX(18px);}
.cc-switch input:focus-visible + .cc-switch-track{outline:2px solid var(--brand-accent, #9A2F58);outline-offset:2px;}

@media (max-width:900px){
    .cc-banner-inner{flex-direction:column;align-items:stretch;gap:12px;}
    .cc-banner-text{max-width:none;}
    .cc-actions{justify-content:flex-end;flex-wrap:wrap;}
}
@media (max-width:600px){
    .cc-banner{padding:14px 16px;}
    .cc-actions{flex-direction:column-reverse;align-items:stretch;}
    .cc-actions .cc-btn{width:100%;}
    .cc-modal{padding:0;align-items:flex-end;}
    .cc-dialog{max-width:none;border-radius:6px 6px 0 0;}
    .cc-dialog-foot{flex-direction:column-reverse;}
    .cc-dialog-foot .cc-btn{width:100%;}
    .cc-category-text{padding-right:0;}
}
@media (prefers-reduced-motion:reduce){
    .cc-btn, .cc-switch-track, .cc-switch-track:after{transition:none;}
}

/* "Cookie settings" zem pieteikšanās / reģistrācijas kartītes - publiskajai
   daļai nav redzamas kājenes, un piekrišanu jāvar mainīt arī neielogojoties. */
.admin-auth-legal{margin-top:20px;text-align:center;font-size:12px;line-height:16px;}
.admin-auth-legal a{color:#5C5F62;text-decoration:underline;}
.admin-auth-legal a:hover{color:var(--brand-accent, #9A2F58);}

/* Vieta fiksētajai sīkdatņu joslai. Bez tās josla aizsedz lapas apakšu -
   piem. "Back to login" zem reģistrācijas formas. Klasi uzliek
   templates/html/cookie_consent.htm.inc un noņem jvs/cookie-consent.js, kad
   izvēle izdarīta. Rezerve = joslas augstums (plašā ekrānā ~90px, vidējā
   ~150px, šaurā, kur pogas ir katra savā rindā, ~270px) ar nelielu rezervi.
   Ritinošais konteiners šeit ir body, tāpēc papildu augstums vienkārši ļauj
   apakšai aizritināties zem joslas. */
body.has-cookie-notice .admin-page-body{
    /* border-box ir būtisks: .admin-page-body min-height ir calc(100vh - 55px),
       un bez tā rezerve tam pieskaitītos klāt - augstā ekrānā parādītos
       ritjosla, kaut viss jau ietilpst. Ar border-box rezerve ir min-height
       IEKŠPUSĒ: augstā ekrānā nekas nemainās, zemā - saturs pārsniedz to un
       apakšu var mierīgi aizritināt zem joslas. */
    box-sizing:border-box;
    padding-bottom:110px;
}
@media (max-width:900px){
    body.has-cookie-notice .admin-page-body{padding-bottom:170px;}
}
@media (max-width:600px){
    body.has-cookie-notice .admin-page-body{padding-bottom:290px;}
}

/* ---------------------------------------------------------------------------
   Apdrukas kvalitāte slāņu sarakstā. Vērtību un klasi uzliek
   design/functions.js updatePrintQualityLabels() - tā ir atkarīga no tā, cik
   lielu lietotājs attēlu ir izmērojis, tāpēc mainās līdz ar katru mērogošanu.
   Krāsa ir vienīgā papildu norāde: skaitlis viens pats neko nepasaka tam, kas
   DPI nezina.
   --------------------------------------------------------------------------- */
.layer-print-quality{ display:block; font-size:12px; line-height:16px; }
.layer-print-quality-good{ color:#108043; }
.layer-print-quality-ok{   color:#B98900; }
.layer-print-quality-low{  color:#D72C0D; }

/* Zīmola krāsa SVG ikonām, kurām akcenta krāsa ir ierakstīta atribūtā
   (fill="#9A2F58"). CSS pārraksta SVG atribūtus, tāpēc ikonas seko
   --brand-accent (brand/<zīmols>/theme.css) bez šablonu labošanas. */
[fill="#9A2F58" i]{fill:var(--brand-accent, #9A2F58);}
[stroke="#9A2F58" i]{stroke:var(--brand-accent, #9A2F58);}

/* Admin "Texts": rīka paziņojumu teksti */

/* Mājas režīms: zonu (jumts/fasāde) materiālu izvēle virs 3D skata */
#houseZones{ position:absolute; left:16px; bottom:16px; z-index:6; display:flex; gap:14px; background:rgba(255,255,255,.92); padding:10px 14px; border-radius:10px; box-shadow:0 2px 12px rgba(0,0,0,.18); }
.house-zone-title{ font-size:12px; font-weight:600; margin-bottom:6px; }
.house-zone-swatches{ display:flex; gap:6px; }
.house-zone-swatches button{ width:40px; height:40px; border-radius:6px; border:2px solid transparent; background-size:cover; background-position:center; cursor:pointer; padding:0; }
.house-zone-swatches button:hover{ border-color:#9aa3ad; }
.house-zone-swatches button.is-active{ border-color:var(--brand-accent, #9A2F58); }
/* Mājas režīms: tikai 3D skats + Presets (nav Design, Layers, My Library) */
body.house-mode .header-worksheet-tools{ display:none; }
body.house-mode .tabs-nav li:nth-child(1), body.house-mode .tabs-nav li:nth-child(2){ display:none; }
body.house-mode .tabs-nav li:nth-child(3){ width:100%; }
body.house-mode .design-next-step .design-name, body.house-mode .undo, body.house-mode .redo, body.house-mode .reset{ display:none; }
.house-presets{ display:grid; grid-template-columns:repeat(auto-fill,minmax(130px,1fr)); gap:12px; padding:4px 0; }
.house-preset{ display:flex; flex-direction:column; gap:8px; padding:8px; border:2px solid #E1E5EA; border-radius:8px; background:#fff; cursor:pointer; text-align:left; font:inherit; }
.house-preset:hover{ border-color:#9aa3ad; }
.house-preset.is-active{ border-color:var(--brand-accent, #9A2F58); }
.house-preset-sw{ display:flex; height:54px; border-radius:5px; overflow:hidden; }
.house-preset-sw i{ flex:1; background-size:cover; background-position:center; }
.house-preset b{ font-size:13px; font-weight:600; color:#15191E; }
body.house-mode .design-next-step{ display:none; }
#tab-3 .house-zone-title{ font-size:14px; margin:18px 0 8px; }
.row[data-product-type="house"] .row-publish{ visibility:hidden; }
/* Māja: tukšo Design/Preview joslu virs 3D skata noņemam (tikai house-mode; citi skati nemainās) */
body.house-mode .header-worksheet{ display:none; }
body.house-mode .worksheet-content{ top:0 !important; }
body.house-mode .header-wrap-worksheet{ display:none; }

/* ---- Produkta krāsu varianti (apļi pie 3D skata; izveido design/utils/environment.js initColorVariants()) ---- */
.tl-swatches{position:fixed;left:16px;top:50%;transform:translateY(-50%);z-index:11;display:flex;flex-direction:column;gap:10px;padding:10px;background:#fff;border-radius:999px;box-shadow:0 6px 24px rgba(20,30,50,.14);}
.tl-swatch{width:28px;height:28px;border-radius:50%;border:1px solid rgba(0,0,0,.18);padding:0;cursor:pointer;box-sizing:border-box;position:relative;}
.tl-swatch:hover{transform:scale(1.08);}
.tl-swatch.is-on{outline:2px solid #15191E;outline-offset:3px;}
@media (max-width:768px){.tl-swatches{left:8px;padding:8px;gap:8px;}.tl-swatch{width:24px;height:24px;}}

/* ------------------------------------------------------------------------
   edit_print_area - labais panelis Modern stilā (kā klienta 3D rīka Modern izkārtojums):
   kapsulu pogas, mīksti bloki, noapaļoti lauki. Tikai šim skatam (:has(.edit-print-area-settings)).
   ------------------------------------------------------------------------ */
.left-navigation:has(.edit-print-area-settings) .design-next-step{
    display:flex; flex-wrap:wrap; gap:8px; padding:18px 20px 8px; box-sizing:border-box;
}
.left-navigation:has(.edit-print-area-settings) .design-next-step .btn{
    height:40px; padding:0 18px; border-radius:10px; border:1px solid #DFE4EA; background:#fff; color:#15191E;
    font:600 14px/1 var(--brand-font, inherit); cursor:pointer; width:auto;
}
.left-navigation:has(.edit-print-area-settings) .design-next-step .btn:hover{border-color:#15191E;}
.left-navigation:has(.edit-print-area-settings) .design-next-step .btn.save-polygon{
    margin-left:auto; background:#15191E; border-color:#15191E; color:#fff;
}
.left-navigation:has(.edit-print-area-settings) .design-next-step .btn.save-polygon:hover{opacity:.9;}
.left-navigation:has(.edit-print-area-settings) .tabs-stage{padding:0 20px 20px; box-sizing:border-box;}
.left-navigation:has(.edit-print-area-settings) .tab-content{padding:0;}
.left-navigation:has(.edit-print-area-settings) .edit-print-area-settings .layer-option-section{
    font-size:13px; font-weight:600; color:#5B6675; padding:6px 0 0;
}
.left-navigation:has(.edit-print-area-settings) .edit-print-area-settings .layer-options-content{padding:8px 0 4px;}
.left-navigation:has(.edit-print-area-settings) input.customText,
.left-navigation:has(.edit-print-area-settings) #print-area-measure-unit,
.left-navigation:has(.edit-print-area-settings) #sidebar-print-area-width,
.left-navigation:has(.edit-print-area-settings) #sidebar-print-area-height{
    border:1px solid #DFE4EA !important; border-radius:10px !important; height:42px; padding:0 14px !important;
    background:#fff; color:#15191E; font-size:14px; box-sizing:border-box; width:100%;
}
.left-navigation:has(.edit-print-area-settings) input.customText:focus,
.left-navigation:has(.edit-print-area-settings) #print-area-measure-unit:focus{outline:none; border-color:#15191E !important;}
.left-navigation:has(.edit-print-area-settings) .edit-print-area-settings-options{
    border:1px solid #E6EAEF; border-radius:16px; background:#F7F8FA; margin-top:16px; padding:6px 18px 14px;
}
.left-navigation:has(.edit-print-area-settings) .edit-print-area-settings-options .layer-option-section{padding:0;}
.left-navigation:has(.edit-print-area-settings) .edit-print-area-settings-options .layer-heading{
    padding:14px 0 6px; font-size:12px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; color:#7A8594;
}
.left-navigation:has(.edit-print-area-settings) .edit-print-area-settings-options .layer-options-content{padding:6px 0; font-size:13px; color:#5B6675;}
.left-navigation:has(.edit-print-area-settings) .edit-print-area-settings-options .layer-patterns{padding-top:10px; gap:8px;}
.left-navigation:has(.edit-print-area-settings) .layer-pattern .layer-patter-icon{
    border-radius:12px; border:1px solid #DFE4EA; background:#fff; transition:background .15s, border-color .15s;
}
.left-navigation:has(.edit-print-area-settings) .layer-pattern .layer-patter-icon:hover{background:#15191E; border-color:#15191E;}
.left-navigation:has(.edit-print-area-settings) .layer-pattern .layer-patter-icon.active{background:#15191E; border-color:#15191E;}
.left-navigation:has(.edit-print-area-settings) .layer-pattern-title{margin-top:6px; font-size:12px; color:#5B6675;}
@media (max-width:768px){
    .left-navigation:has(.edit-print-area-settings) .design-next-step{padding:12px 14px 6px;}
    .left-navigation:has(.edit-print-area-settings) .tabs-stage{padding:0 14px 16px;}
}

/* Paziņojuma modālis (jvs/3d.js adminNotice): ikona pēc veida */
.admin-notice .admin-notice-icon{
    width:44px; height:44px; border-radius:50%; margin:0 0 14px; background:#E8F5EC; position:relative;
}
.admin-notice .admin-notice-icon::after{
    content:''; position:absolute; left:16px; top:10px; width:8px; height:15px; border:solid #1E8E4A; border-width:0 3px 3px 0; transform:rotate(45deg);
}
.admin-notice.is-error .admin-notice-icon{background:#FDECEA;}
.admin-notice.is-error .admin-notice-icon::after{content:'!'; border:0; transform:none; left:0; top:0; width:44px; height:44px; line-height:44px; text-align:center; color:#B3261E; font:700 24px/44px Inter,Arial,sans-serif;}
.admin-notice.is-warn .admin-notice-icon{background:#FFF4DE;}
.admin-notice.is-warn .admin-notice-icon::after{content:'!'; border:0; transform:none; left:0; top:0; width:44px; height:44px; text-align:center; color:#B26A00; font:700 24px/44px Inter,Arial,sans-serif;}
.admin-notice{z-index:1100;}

/* Side name: ap lauku bija vecais rāmis ar overflow:hidden (dubultā līnija, nogriezts lauks) - noņemam, rāmis ir pašam laukam */
.left-navigation:has(.edit-print-area-settings) .layer-options-content.has-rows .customTextInput{
    border:0 !important; border-radius:0; overflow:visible !important; margin-top:6px;
}
.left-navigation:has(.edit-print-area-settings) .layer-options-content.has-rows .customTextInput input.customText{
    height:42px !important; border:1px solid #DFE4EA !important; border-radius:10px !important; padding:0 14px !important; font-size:14px; line-height:20px;
}

/* Apply: vertikāli pa vidu pret platuma/augstuma laukiem (kolonna ir tikpat augsta kā lauks, 42px, un pieķerta rindas apakšai) */
.left-navigation:has(.edit-print-area-settings) .layer-options-col:has(#sidebar-print-area-apply){
    display:flex; align-items:center; align-self:flex-end !important; height:42px;
}
.left-navigation:has(.edit-print-area-settings) #sidebar-print-area-apply{
    padding:0 4px !important; line-height:1; font-size:14px;
}

/* Ruler: kompakta rinda (teksts pa kreisi, poga ikona + nosaukums pa labi); aktīvais stāvoklis (rīks ieslēgts) atšķiras no hover */
.left-navigation:has(.edit-print-area-settings) .edit-print-area-settings-options .layer-options-content:has(.layer-pattern.ruler){
    display:flex; flex-direction:row-reverse; align-items:center; justify-content:flex-end; gap:12px; flex-wrap:nowrap;
}
.left-navigation:has(.edit-print-area-settings) .edit-print-area-settings-options .layer-options-content:has(.layer-pattern.ruler) .layer-patterns{padding-top:0; width:auto; flex:0 0 auto;}
.left-navigation:has(.edit-print-area-settings) .edit-print-area-settings-options .layer-pattern.ruler{display:flex; flex-direction:row; align-items:center; gap:8px;}
.left-navigation:has(.edit-print-area-settings) .edit-print-area-settings-options .layer-pattern.ruler .layer-patter-icon{width:44px; height:36px; border-radius:10px; transition:none; flex:0 0 auto;}
.left-navigation:has(.edit-print-area-settings) .edit-print-area-settings-options .layer-pattern.ruler .layer-pattern-title{margin:0; font-size:13px; font-weight:600; color:#15191E;}
.left-navigation:has(.edit-print-area-settings) .edit-print-area-settings-options .layer-pattern.ruler .layer-patter-icon.active{background:#fff; border:2px solid #15191E;}
.left-navigation:has(.edit-print-area-settings) .edit-print-area-settings-options .layer-pattern.ruler .layer-patter-icon.active svg rect,
.left-navigation:has(.edit-print-area-settings) .edit-print-area-settings-options .layer-pattern.ruler .layer-patter-icon.active svg path{stroke:#15191E; fill:none;}
.left-navigation:has(.edit-print-area-settings) .edit-print-area-settings-options .layer-pattern.ruler:hover .layer-patter-icon{background:#15191E; border-color:#15191E;}
.left-navigation:has(.edit-print-area-settings) .edit-print-area-settings-options .layer-pattern.ruler:hover .layer-patter-icon svg g{stroke:#fff;}
.left-navigation:has(.edit-print-area-settings) .edit-print-area-settings-options .layer-pattern.ruler .layer-patter-icon.active svg g{stroke:#15191E;}
.left-navigation:has(.edit-print-area-settings) .edit-print-area-settings-options .layer-pattern.ruler:hover .layer-patter-icon.active svg g{stroke:#fff;}
.left-navigation:has(.edit-print-area-settings) .edit-print-area-settings-options .layer-pattern.ruler svg rect,
.left-navigation:has(.edit-print-area-settings) .edit-print-area-settings-options .layer-pattern.ruler svg path{stroke:inherit !important; fill:none !important;}
.left-navigation:has(.edit-print-area-settings) .edit-print-area-settings-options .layer-pattern.ruler{cursor:pointer;}

/* Platuma/augstuma slēdzene (proporcijas): poga starp laukiem, 42px augsta kā lauki */
.left-navigation:has(.edit-print-area-settings) .layer-options-col-lock{
    flex:0 0 auto !important; align-self:flex-end; height:42px; display:flex; align-items:center;
}
.print-area-lock{
    width:34px; height:34px; padding:0; border:1px solid #DFE4EA; border-radius:10px; background:#fff; color:#15191E;
    display:flex; align-items:center; justify-content:center; cursor:pointer;
}
.print-area-lock:hover{border-color:#15191E;}
.print-area-lock[aria-pressed="true"]{background:#15191E; border-color:#15191E; color:#fff;}
.print-area-lock .lock-shackle{transform-origin:16px 11px; transition:transform .15s;}
.print-area-lock[aria-pressed="false"] .lock-shackle{transform:rotate(-32deg);}

/* Formu izvēle: kartītes (ikona + nosaukums vienā flīzē), aktīvā = tumša flīze; ikonas zīmētas ar currentColor */
.left-navigation:has(.edit-print-area-settings) .layer-patterns:has(.layer-pattern.rectangle){
    display:grid; grid-template-columns:repeat(4, minmax(0,1fr)); gap:8px; padding-top:8px;
}
.left-navigation:has(.edit-print-area-settings) .layer-pattern:not(.ruler){
    display:flex; flex-direction:column; align-items:center; gap:4px; padding:12px 4px 9px;
    background:#fff; border:1px solid #DFE4EA; border-radius:12px; color:#15191E; cursor:pointer; box-sizing:border-box; min-width:0;
    transition:border-color .12s, background .12s, color .12s;
}
.left-navigation:has(.edit-print-area-settings) .layer-pattern:not(.ruler) .layer-patter-icon{
    background:transparent !important; border:0 !important; height:26px; width:100%; border-radius:0; color:inherit;
}
.left-navigation:has(.edit-print-area-settings) .layer-pattern:not(.ruler) .layer-pattern-title{margin:0; font-size:12px; font-weight:600; color:inherit; text-align:center; white-space:nowrap;}
.left-navigation:has(.edit-print-area-settings) .layer-pattern:not(.ruler):hover{border-color:#15191E;}
.left-navigation:has(.edit-print-area-settings) .layer-pattern:not(.ruler):has(.layer-patter-icon.active){background:#15191E; border-color:#15191E; color:#fff;}

/* Formu flīzes kompaktākas: mazākas ikonas, zemāka flīze */
.left-navigation:has(.edit-print-area-settings) .layer-pattern:not(.ruler){gap:2px; padding:7px 4px 6px; border-radius:10px;}
.left-navigation:has(.edit-print-area-settings) .layer-pattern:not(.ruler) .layer-patter-icon{height:18px;}
.left-navigation:has(.edit-print-area-settings) .layer-pattern:not(.ruler) .layer-patter-icon svg{width:22px; height:18px;}
.left-navigation:has(.edit-print-area-settings) .layer-pattern:not(.ruler) .layer-pattern-title{font-size:11.5px; line-height:14px;}
.left-navigation:has(.edit-print-area-settings) .layer-patterns:has(.layer-pattern.rectangle){gap:6px; padding-top:6px;}

/* Foto fons saplūst ar laukumu (sk. jvs/3d.js); rāmis tikai ap visu redaktora laukumu */
body.print-area-photo-bg .design-side{box-shadow:inset 0 0 0 1px #DFE4EA;}

/* Izmēru etiķetes uz audekla ar mērvienību ("22.77 cm") - platums pēc satura */
#inline-btn, #inline-btn-height{field-sizing:content; min-width:48px;}

/* Visas virsmas produkts: tikai 3D skats; ap modeli vadīklas (griezt / atiestatīt) */
#fs-view-tools{position:absolute;top:14px;left:50%;transform:translateX(-50%);z-index:6;display:flex;align-items:center;gap:8px;padding:6px 8px 6px 14px;background:#fff;border:1px solid #DFE4EA;border-radius:999px;box-shadow:0 4px 14px rgba(20,30,50,.10);font-size:12.5px;color:#5B6675;white-space:nowrap;}
#fs-view-tools .fs-hint{margin-right:2px;}
#fs-view-tools .fs-btn{height:30px;padding:0 12px;border:1px solid #DFE4EA;border-radius:999px;background:#fff;color:#15191E;font:600 12.5px/1 var(--brand-font, inherit);cursor:pointer;}
#fs-view-tools .fs-btn:hover{border-color:#15191E;}
#fs-view-tools .fs-btn[aria-pressed="true"]{background:#15191E;border-color:#15191E;color:#fff;}
@media (max-width:768px){#fs-view-tools .fs-hint{display:none;}#fs-view-tools{padding:6px 8px;}}

body.full-surface .header-worksheet-tools, body.full-surface .header-worksheet-tools-cotainer{display:none !important;}

/* Admin 3D skats: ielādes progresu rāda centrētais logs (.design-export), tāpēc skeleta pašā apakšā esošo dublikātu paslēpjam */
#admin-3d-loading .design-loading-status{display:none;}

/* Apdrukas laukumu robežu pārslēgs 3D skatā (produkti ar pusēm) */
#pa-guides-tool{position:absolute;top:10px;right:10px;z-index:6;}
#pa-guides-tool .fs-btn{height:38px;padding:0 16px;font-size:14px;border:1px solid #DFE4EA;border-radius:999px;background:#fff;color:#15191E;font:600 12.5px/1 var(--brand-font, inherit);cursor:pointer;box-shadow:0 4px 14px rgba(20,30,50,.10);}
#pa-guides-tool .fs-btn{display:inline-flex;align-items:center;gap:10px;}
#pa-guides-tool .fs-btn[aria-pressed="true"]{background:#fff;border-color:#DFE4EA;color:#15191E;}   /* ieslēgts = slēdzis tumšs (kits: ui-switch-track), nevis visa poga */
body.full-surface #pa-guides-tool{display:none;}

/* 3D poga un krustiņš (Design/Preview pārslēgs paslēpts): 3D ielādējas tikai pēc pogas, krustiņš to aizver */
body.tool-3d-button .header-worksheet-tools{display:none !important;}
.tool-3d-btn{position:absolute;top:10px;right:10px;z-index:7;display:inline-flex;align-items:center;gap:8px;height:38px;padding:0 16px;border:1px solid #DFE4EA;border-radius:999px;background:#fff;color:#15191E;font:700 14px/1 var(--brand-font, inherit);cursor:pointer;box-shadow:0 4px 14px rgba(20,30,50,.12);}
.tool-3d-btn:hover{border-color:#15191E;}
.tool-3d-btn:disabled{cursor:progress;opacity:.85;}
.tool-3d-icon{display:inline-flex;width:18px;height:18px;flex:0 0 auto;}
.tool-3d-icon svg{display:block;}
.tool-3d-btn.is-loading .tool-3d-icon svg{animation:tool3d-spin 1s linear infinite;}
@keyframes tool3d-spin{to{transform:rotate(360deg);}}
.tool-3d-close{background:#15191E;border-color:#15191E;color:#fff;}
.tool-3d-close .tool-3d-x{font-size:22px;font-weight:400;line-height:1;margin-top:-2px;}
body.view-3d #open-3d-btn{display:none;}
body:not(.view-3d) #close-3d-btn{display:none;}
/* classic: 3D produktam (3D poga stūrī) augšējā balta josla ir tukša (Design/Preview pogu nav) - paslēpta, skatuve sākas pašā augšā (modern to jau dara) */
html:not([class*="tool-layout-"]) body.tool-3d-button:not(.admin):not(.save-action) .header-wrap.header-wrap-worksheet{display:none;}
html:not([class*="tool-layout-"]) body.tool-3d-button:not(.admin):not(.save-action) main.wrap-content.worksheet-content{top:0;}
body:not(.view-3d):not(.tool-3d-button) #pa-guides-tool{display:none;}   /* 3D produktam (ar "3D" pogu) slēdzis redzams arī 2D skatā */
body.pa-guides-2d:not(.view-3d) #pa-guides-tool{display:block;}   /* 2D produkts (bez 3D modeļa): slēdzis redzams 2D skatā */
body.view-3d #pa-guides-tool,body.tool-3d-button #pa-guides-tool{right:89px;}
.footer-worksheet .reset{display:flex;align-items:center;}
.footer-worksheet .reset-label{padding:0 10px 0 4px;font:600 13px/1 var(--brand-font, inherit);color:#15191E;background:#fff;height:32px;line-height:32px;border-radius:0 3px 3px 0;margin-left:-3px;}
/* Ielādes kartīte uz skatuves pirmajā 3D atvēršanas reizē */
#stage-3d-loading{position:absolute;inset:0;z-index:3;display:flex;align-items:center;justify-content:center;pointer-events:none;}
#stage-3d-loading[hidden]{display:none;}
.s3l-card{display:flex;flex-direction:column;align-items:center;gap:12px;padding:22px 30px;border-radius:16px;background:#fff;box-shadow:0 10px 34px rgba(20,30,50,.16);font:600 14px/1.2 var(--brand-font, inherit);color:#15191E;}
.s3l-spin{width:30px;height:30px;border-radius:50%;border:3px solid #E1E5EA;border-top-color:var(--brand-accent, #9A2F58);animation:tool3d-spin .9s linear infinite;}
.s3l-bar{display:block;width:160px;height:4px;border-radius:2px;background:#E9EDF1;overflow:hidden;}
.s3l-bar i{display:block;height:100%;width:4%;background:var(--brand-accent, #9A2F58);transition:width .25s;}
/* Design / Preview pārslēgs aizstāts ar pogu "3D" - ielādes laikā to nerādām (citādi īsu brīdi redzams) */
body:not(.house-mode) .header-worksheet-tools:has(#design-switch){visibility:hidden;}
/* Pušu izvēle ar sīktēliem (select paslēpts) */
.has-side-thumbs .design-name{display:none !important;}
.side-thumbs{display:flex;gap:10px;flex:1 1 auto;min-width:0;overflow-x:auto;padding:2px 2px 4px;scrollbar-width:thin;}
.side-thumb{flex:0 0 auto;display:flex;flex-direction:column;align-items:center;gap:4px;width:68px;padding:0;border:0;background:none;cursor:pointer;font:600 11px/1.2 var(--brand-font, inherit);color:#5d6877;}
.side-thumb-img{display:flex;align-items:center;justify-content:center;width:68px;height:68px;border:1px solid #E1E5EA;border-radius:10px;background:#F3F4F6;overflow:hidden;box-sizing:border-box;}
.side-thumb-img img{width:100%;height:100%;object-fit:contain;display:block;}
.side-thumb:hover .side-thumb-img{border-color:#9aa5b3;}
.side-thumb.is-on .side-thumb-img{border:2px solid var(--brand-accent, #9A2F58);}
.side-thumb.is-on{color:#15191E;}
.side-thumb-name{max-width:68px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
/* Text art: tipu izvēle slāņa panelī */
.text-art-tiles{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;}
.text-art-tile{display:flex;flex-direction:column;align-items:center;gap:4px;padding:8px 4px 6px;border:1px solid #E1E5EA;border-radius:10px;background:#fff;color:#15191E;cursor:pointer;font:600 11.5px/1.2 var(--brand-font, inherit);}
.text-art-tile:hover{border-color:#9aa5b3;}
.text-art-tile.is-on{border:2px solid var(--brand-accent, #9A2F58);padding:7px 3px 5px;}
.text-art-curve-row{display:flex;align-items:center;gap:12px;margin-top:10px;font-size:13px;font-weight:600;color:#5d6877;}
.text-art-curve-row input{flex:1;accent-color:var(--brand-accent, #9A2F58);}

/* Pušu sīktēli: balts produkts uz gaiša fona nebija redzams - tumšāks fons + ēna ap produktu */
.side-thumb-img{background:#CBD2DC;border-color:#B7C0CD;}
.side-thumb-img img{filter:drop-shadow(0 1px 3px rgba(20,30,50,.45));}
.side-thumb.is-on .side-thumb-img{border-color:var(--brand-accent,#9A2F58);box-shadow:0 0 0 2px color-mix(in srgb,var(--brand-accent,#9A2F58) 30%,transparent);}

/* 3D skatā: padoms virs vilkšanai pārvietojamā slāņa un \"Updating\" rādītājs pēc pavilkšanas */
.drag-tip{position:absolute;z-index:9;pointer-events:none;padding:5px 10px;border-radius:999px;background:rgba(21,25,30,.88);color:#fff;font:600 12px/1 var(--brand-font, inherit);white-space:nowrap;box-shadow:0 2px 8px rgba(20,30,50,.25);}
.drag-updating{position:absolute;z-index:9;left:50%;bottom:22px;transform:translateX(-50%);display:inline-flex;align-items:center;gap:8px;padding:9px 16px;border-radius:999px;background:#fff;color:#15191E;font:600 13px/1 var(--brand-font, inherit);box-shadow:0 4px 16px rgba(20,30,50,.2);pointer-events:none;}
.drag-updating[hidden],.drag-tip[hidden]{display:none;}
.drag-updating-spin{width:14px;height:14px;border:2px solid #D5DAE1;border-top-color:var(--brand-accent,#9A2F58);border-radius:50%;animation:dragspin .8s linear infinite;}
@keyframes dragspin{to{transform:rotate(360deg)}}

/* Visās admin lapās (arī sarakstos/pasūtījumos, kur nav design_admin/styles.css): bez lielā centrētā virsraksta - tas ir kartes iekšā */
.admin .add-product-top h1{display:none;}
.admin .add-product-top:not(:has(.add-product-steps)){display:none;}
.admin .add-product-container .page-card-head{display:flex;align-items:center;gap:12px;padding:2px 4px 14px;}
.admin .add-product-container .page-card-head .setup-intro-title{font:700 22px/28px var(--brand-font, inherit);letter-spacing:-.01em;color:#15191E;}

/* Pušu sīktēli: slāņu skaita nozīme; slāņu cilnē paskaidrojums (katrai pusei savi slāņi) */
.side-thumb-img{position:relative;}
.side-thumb-badge{position:absolute;top:4px;right:4px;min-width:18px;height:18px;padding:0 5px;box-sizing:border-box;border-radius:999px;background:var(--brand-accent,#9A2F58);color:#fff;font:700 11px/18px var(--brand-font, inherit);text-align:center;box-shadow:0 1px 3px rgba(20,30,50,.35);}
.side-thumb-badge[hidden]{display:none;}
.layers-side-hint{display:flex;flex-wrap:wrap;align-items:center;gap:6px 8px;padding:8px 2px 10px;font:500 12.5px/18px var(--brand-font, inherit);color:#5B6675;}
.layers-side-hint b{color:#15191E;font-weight:700;}
.lsh-chip{border:1px solid #DCE1E8;background:#F6F8FA;color:#15191E;border-radius:999px;padding:3px 10px;font:600 12px/18px var(--brand-font, inherit);cursor:pointer;}
.lsh-chip:hover{border-color:var(--brand-accent,#9A2F58);background:#fff;}

/* Pattern: redaktora sagatavošanas indikators */
.layer-option-section.pattern-busy .layer-heading{position:relative;}
.layer-option-section.pattern-busy .layer-heading::before{content:var(--t-busy,"Preparing pattern…");position:absolute;right:64px;top:50%;transform:translateY(-50%);padding-left:22px;font:600 12px/16px var(--brand-font, inherit);color:#5B6675;background:no-repeat left center / 14px 14px url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><circle cx='12' cy='12' r='9' fill='none' stroke='%23D5DAE1' stroke-width='3'/><path d='M12 3a9 9 0 0 1 9 9' fill='none' stroke='%239A2F58' stroke-width='3' stroke-linecap='round'><animateTransform attributeName='transform' type='rotate' from='0 12 12' to='360 12 12' dur='0.8s' repeatCount='indefinite'/></path></svg>");}
.layer-option-section.pattern-busy .layer-patterns{pointer-events:none;opacity:.6;}

/* Parasts teksta slānis un Text art slānis ir divi atšķirīgi slāņu veidi: "Text art" sadaļa tikai Text art slānim */
.layer-options-text:not(.is-text-art) .text-art-section{display:none;}

/* 3D skatā vilktais slānis: nosaukums virs modeļa + izcelta slāņa rinda sarakstā */
.drag-moving{position:absolute;z-index:9;left:50%;top:78px;transform:translateX(-50%);padding:8px 16px;border-radius:999px;background:var(--brand-accent,#9A2F58);color:#fff;font:700 13px/1 var(--brand-font, inherit);box-shadow:0 4px 16px rgba(20,30,50,.3);pointer-events:none;white-space:nowrap;}
.drag-moving[hidden]{display:none;}
.layer-options.is-active-layer{box-shadow:0 0 0 2px var(--brand-accent,#9A2F58);border-radius:12px;}

/* Slāņa slēdzene (bloķē pārvietošanu) - redzama slāņa galvenē blakus kopēšanai/dzēšanai */
.layer-options .add-design .lock-layer{display:inline-flex;align-items:center;justify-content:center;}
.leyer-options-btn .lock-layer.is-locked{background:color-mix(in srgb,var(--brand-accent,#9A2F58) 14%,transparent);border-radius:8px;}
.leyer-options-btn .lock-layer.is-locked svg path{fill:var(--brand-accent,#9A2F58);}
.layer-options.is-locked-layer .layer-source .layer-options-info b::after{content:var(--t-locked," · locked");font-weight:600;color:var(--brand-accent,#9A2F58);}

/* Slāņa rāmis ar rokturiem uz 3D modeļa (design/utils/environment.js setupPreviewDrag): dzēst / griezt / mērogot.
   Izskats sakrīt ar 2D rāmi (functions.js drawControlBase): plāna līnija, balti apļi ar zilu kontūru, ikonas - SEprint duotona komplekts */
.layer-gizmo{position:absolute;inset:0;pointer-events:none;z-index:6;}
.layer-gizmo[hidden]{display:none;}
.layer-gizmo .lg-svg{position:absolute;left:0;top:0;width:100%;height:100%;overflow:visible;}
.layer-gizmo .lg-poly{fill:none;stroke:var(--brand-accent-alt,#0F8FE0);stroke-width:1;stroke-linejoin:round;}
.layer-gizmo .lg-h{position:absolute;width:30px;height:30px;margin:-15px 0 0 -15px;padding:0;border-radius:50%;border:1.5px solid var(--brand-accent-alt,#0F8FE0);background:#fff;color:var(--brand-accent,#0B7AC2);display:flex;align-items:center;justify-content:center;pointer-events:auto;cursor:pointer;box-shadow:0 1px 3px rgba(15,30,50,.2);touch-action:none;}
.layer-gizmo .lg-h svg{width:18px;height:18px;}
.layer-gizmo .lg-h:hover{background:var(--brand-accent-tint,#E3F1FC);}
.layer-gizmo .lg-rotate{cursor:grab;}
.layer-gizmo .lg-scale{cursor:nesw-resize;}

/* "Fill the whole surface" slēdzis attēla slānim (tikai visas virsmas produktiem); režīmā ieslēgts rotācija/pozīcija nav pieejama */
.layer-fill-row{display:none;align-items:center;justify-content:space-between;gap:14px;padding:14px 0 4px;border-top:1px solid #EEF1F5;margin-top:10px;}
body.full-surface .layer-fill-row,
.layer-options.fill-capable .layer-fill-row{display:flex;}
.layer-fill-text{display:flex;flex-direction:column;gap:3px;min-width:0;flex:1 1 auto;}
.layer-fill-row .switch{flex:0 0 50px;width:50px;min-width:50px;float:none;margin:0;}   /* slēdzi flex rinda nedrīkst saspiest (iepriekš tika nogriezta labā mala) */
.layer-fill-text b{font:600 14px/1.2 var(--brand-font, inherit);color:#15191E;}
.layer-fill-text span{font:400 12.5px/1.35 var(--brand-font, inherit);color:#7a8594;}
.layer-options.is-fill-surface .layer-size-section + .layer-option-section,
.layer-options.is-fill-surface .layer-size-section + .layer-option-section + .layer-option-section{display:none;}

/* My Library: vilkšanas zona un fotogrāfiju meklētājs */
.my-library-content{display:flex;flex-direction:column;gap:12px;}
/* Library apakšcilnēs: atstarpe starp augšupielādes/meklēšanas bloku un zem tā esošo rezultātu režģi (visos izkārtojumos) */
.tabs-library-stage .my-library-content{margin-bottom:12px;}
/* Library apakšcilnes (My uploads / Find photos): vienāda platuma, ar redzamu aktīvo cilni (modern/studio/toolbar to pārraksta ar savu pill stilu) */
.left-navigation .tabs-stage ul.tabs-library{padding: 0 0 14px 0;gap: 0;}
.left-navigation .tabs-stage ul.tabs-library li{flex: 1 1 0;flex-shrink: 1;}
.left-navigation .tabs-stage ul.tabs-library li a{width: 100%;height: 38px;box-sizing: border-box;font-size: 13px;border-bottom: 2px solid #E1E5EA;}
.left-navigation .tabs-stage ul.tabs-library li.tab-active a,
.left-navigation .tabs-stage ul.tabs-library:not(:has(li.tab-active)) li:first-child a{color: rgba(var(--brand-accent-rgb, 154, 47, 88), 1);border-bottom-color: rgba(var(--brand-accent-rgb, 154, 47, 88), 1);}
.lib-drop{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;padding:22px 16px;border:2px dashed var(--brand-accent-soft,#A9D4F5);border-radius:12px;background:var(--brand-accent-tint,#E3F1FC);color:var(--brand-accent,#0B7AC2);text-align:center;cursor:pointer;transition:border-color .15s,background .15s,transform .15s;}
.lib-drop:hover,.lib-drop:focus-visible{border-color:var(--brand-accent,#0B7AC2);outline:none;}
.lib-drop.is-over{border-style:solid;border-color:var(--brand-accent,#0B7AC2);background:#d4e9fa;transform:scale(1.01);}
.lib-drop-icon{margin-bottom:2px;}
.lib-drop-title{font:700 15px/1.25 var(--brand-font, inherit);color:#15191E;}
.lib-drop-sub{font:400 12.5px/1.3 var(--brand-font, inherit);color:#5B6675;}
.lib-search{padding:12px 14px;border:1px solid #E1E5EA;border-radius:12px;background:#fff;}
.lib-search-title{font:700 14px/1.25 var(--brand-font, inherit);color:#15191E;margin-bottom:8px;}
.lib-search .search-input{display:flex;gap:8px;}
.lib-search .search-input input{flex:1 1 auto;min-width:0;height:38px;padding:0 12px;border:1px solid #D5DAE1;border-radius:8px;font:400 14px var(--brand-font, inherit);}
.lib-search .search-input input:focus{outline:none;border-color:var(--brand-accent,#0B7AC2);}
.lib-search .search-input .btn{flex:0 0 auto;height:38px;padding:0 16px;margin:0;}
.lib-search .search-input .btn.is-busy{opacity:.6;cursor:progress;}
.lib-search-note{margin-top:6px;font:400 12px/1.3 var(--brand-font, inherit);color:#7a8594;}

/* foto avotu čipi un autora norāde */
.lib-sources{display:flex;gap:6px;flex-wrap:wrap;margin:0 0 8px;}
.lib-src{height:30px;padding:0 12px;border:1px solid #D5DAE1;border-radius:999px;background:#fff;color:#15191E;font:600 13px var(--brand-font, inherit);cursor:pointer;}
.lib-src.is-on{background:#15191E;border-color:#15191E;color:#fff;}
.library-content-item.from-pexel{position:relative;}
.library-content-item .photo-credit{position:absolute;left:0;right:0;bottom:0;padding:14px 6px 4px;background:linear-gradient(transparent,rgba(0,0,0,.55));color:#fff;font:600 11px/1.2 var(--brand-font, inherit);text-decoration:none;opacity:0;transition:opacity .15s;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;}
.library-content-item.from-pexel:hover .photo-credit,.library-content-item .photo-credit:focus{opacity:1;}

/* AI raksti: poga uz foto rezultāta, stāvokļa rinda */
.library-content-item .photo-pattern-btn{position:absolute;top:6px;right:6px;height:26px;padding:0 10px;border:0;border-radius:999px;background:#fff;color:#15191E;box-shadow:0 1px 4px rgba(0,0,0,.25);font:600 12px var(--brand-font, inherit);cursor:pointer;opacity:0;transition:opacity .15s;}
.library-content-item.from-pexel:hover .photo-pattern-btn,.library-content-item .photo-pattern-btn:focus{opacity:1;}
.library-content-item .photo-pattern-btn.is-busy{opacity:1;cursor:progress;}
.library-content-item .photo-pattern-btn:disabled{cursor:progress;}
@media (hover:none){.library-content-item .photo-pattern-btn{opacity:1;}}
.lib-ai-status{margin-top:8px;font:400 13px/1.35 var(--brand-font, inherit);color:#4a5563;}
.lib-ai-status.is-error{color:#B3261E;}
.lib-ai-status:empty{display:none;}

/* Ielādes aizsegs modern izkārtojumam: labajā panelī tās pašas vietas, kur būs īstie elementi
   (puses miniatūra + Next, rinda "Add" + 4 pogas, sīkais teksts, Layers / My Library pārslēgs, kartīte). Classic paliek ar savu skeletu. */
.design-loading-panel-modern{display:none;}
html.tool-layout-modern .design-loading-panel{padding:0 18px;}
html.tool-layout-modern .design-loading-panel-top,
html.tool-layout-modern .design-loading-panel-tabs,
html.tool-layout-modern .design-loading-panel-body{display:none;}
html.tool-layout-modern .design-loading-panel-modern{display:block;}
.design-loading-panel-modern .dlm-top{display:flex;align-items:center;justify-content:space-between;height:68px;margin-top:17px;}
.design-loading-panel-modern .dlm-thumb{width:68px;height:68px;border-radius:8px;}
.design-loading-panel-modern .dlm-actions{display:flex;align-items:center;gap:11px;margin-top:22px;height:38px;}
.design-loading-panel-modern .dlm-add{width:26px;height:14px;}
.design-loading-panel-modern .dlm-pill{height:38px;border-radius:10px;}
.design-loading-panel-modern .dlm-hint{width:68%;height:12px;margin-top:14px;}
.design-loading-panel-modern .dlm-seg{width:100%;height:40px;border-radius:10px;margin-top:24px;}
.design-loading-panel-modern .dlm-card{margin-top:24px;}
@media (max-width:768px){ html.tool-layout-modern .design-loading-panel,.design-loading-panel-modern{display:none;} }

/* "Use as pattern" darbojas: pārklājums uz paša foto */
.library-content-item.is-ai-busy{position:relative;}
.library-content-item.is-ai-busy::after{content:attr(data-busy-text);position:absolute;inset:0;display:flex;align-items:center;justify-content:center;text-align:center;padding:8px;background:rgba(21,25,30,.62);color:#fff;font:600 13px/1.3 var(--brand-font, inherit);animation:lib-ai-pulse 1.4s ease-in-out infinite;pointer-events:none;}
@keyframes lib-ai-pulse{0%,100%{opacity:.85;}50%{opacity:1;}}

/* foto darbības (Crop / Use as pattern) un apgriešanas logs */
.library-content-item .photo-actions{position:absolute;top:6px;right:6px;display:flex;flex-direction:column;align-items:flex-end;gap:4px;opacity:0;transition:opacity .15s;}
.library-content-item.from-pexel:hover .photo-actions,.library-content-item .photo-actions:focus-within,.library-content-item.is-ai-busy .photo-actions{opacity:1;}
.library-content-item .photo-actions .photo-pattern-btn,.library-content-item .photo-actions .photo-crop-btn{position:static;opacity:1;height:26px;padding:0 10px;border:0;border-radius:999px;background:#fff;color:#15191E;box-shadow:0 1px 4px rgba(0,0,0,.25);font:600 12px var(--brand-font, inherit);cursor:pointer;}
@media (hover:none){.library-content-item .photo-actions{opacity:1;}}
.pcrop{position:fixed;inset:0;z-index:2000;background:rgba(15,20,28,.6);display:flex;align-items:center;justify-content:center;padding:16px;box-sizing:border-box;}
.pcrop-card{background:#fff;border-radius:14px;padding:16px 18px;max-width:100%;max-height:100%;display:flex;flex-direction:column;box-sizing:border-box;box-shadow:0 12px 40px rgba(0,0,0,.35);}
.pcrop-head b{display:block;font:700 16px/1.3 var(--brand-font, inherit);color:#15191E;}
.pcrop-head span{display:block;margin-top:2px;font:400 13px/1.35 var(--brand-font, inherit);color:#5B6675;}
.pcrop-stage{display:flex;justify-content:center;align-items:center;min-height:120px;margin:12px 0;overflow:auto;flex:1 1 auto;}
.pcrop-loading{font:400 14px var(--brand-font, inherit);color:#5B6675;}
.pcrop-wrap{position:relative;overflow:hidden;touch-action:none;user-select:none;line-height:0;border-radius:4px;outline:1px solid rgba(0,0,0,.2);background-color:#e6e6e6;background-image:linear-gradient(45deg,#fff 25%,transparent 25%,transparent 75%,#fff 75%),linear-gradient(45deg,#fff 25%,transparent 25%,transparent 75%,#fff 75%);background-size:16px 16px;background-position:0 0,8px 8px;}   /* rūtiņu fons: caurspīdīgs vai balts attēls baltajā logā vairs nešķiet "neielādēts" */
.pcrop-img{display:block;width:100%;height:100%;pointer-events:none;}
.pcrop-box{position:absolute;box-sizing:border-box;border:2px solid #fff;box-shadow:0 0 0 9999px rgba(15,20,28,.55);cursor:move;outline:1px solid rgba(0,0,0,.35);}
.pcrop-h{position:absolute;width:18px;height:18px;background:#fff;border:2px solid #15191E;border-radius:50%;box-sizing:border-box;}
.pcrop-h[data-h="nw"]{left:-10px;top:-10px;cursor:nwse-resize;}
.pcrop-h[data-h="ne"]{right:-10px;top:-10px;cursor:nesw-resize;}
.pcrop-h[data-h="sw"]{left:-10px;bottom:-10px;cursor:nesw-resize;}
.pcrop-h[data-h="se"]{right:-10px;bottom:-10px;cursor:nwse-resize;}
.pcrop-foot{display:flex;align-items:center;gap:10px;}
.pcrop-sp{flex:1;}
.pcrop-sq{display:flex;align-items:center;gap:6px;font:600 13px var(--brand-font, inherit);color:#15191E;cursor:pointer;}
.pcrop-sq i{font-style:normal;}

.pcrop-info{margin:-4px 0 10px;font:600 13px/1.35 var(--brand-font, inherit);min-height:18px;}
.pcrop-info.is-good{color:#1B7A3A;}
.pcrop-info.is-mid{color:#9A6A00;}
.pcrop-info.is-bad{color:#B3261E;}

.pcrop-foot .pcrop-ai{white-space:nowrap;}

.pcrop-foot .pcrop-ai{background:var(--brand-accent,#0B7AC2);border-color:var(--brand-accent,#0B7AC2);color:#fff;}
.pcrop-foot .pcrop-ai:disabled{opacity:.5;}

.pcrop-rep{display:flex;align-items:center;gap:6px;margin-left:14px;font:600 13px var(--brand-font, inherit);color:#15191E;}
.pcrop-rep i{font-style:normal;}
.pcrop-rep select{height:30px;border:1px solid #D5DAE1;border-radius:6px;padding:0 6px;font:600 13px var(--brand-font, inherit);background:#fff;color:#15191E;}

/* apgriešanas logs telefonā: karte ietilpst ekrānā, kājene lauzta divās rindās (iOS Safari nesaspiež satura platumu) */
.pcrop{height:100vh;height:100dvh;overflow:hidden;}
.pcrop-card{width:100%;max-width:920px;min-width:0;overflow:hidden;}
.pcrop-foot{flex-wrap:wrap;}
@media (max-width:560px){
    .pcrop{padding:10px;}
    .pcrop-card{padding:12px 12px 14px;}
    .pcrop-foot{gap:8px;}
    .pcrop-sp{display:block;flex:0 0 100%;height:0;order:1;}   /* rindas pārtraukums: pirmā rinda Square + Repeat, tad pogas */
    .pcrop-rep{margin-left:auto;}
    .pcrop-foot .btn{height:44px;padding:0 10px;font-size:14px;min-width:0;white-space:nowrap;}
    .pcrop-foot .pcrop-ai,.pcrop-foot .pcrop-ok{flex:1 1 calc(50% - 4px);order:2;}
    .pcrop-foot .pcrop-cancel{flex:1 1 100%;order:3;height:38px;}
    .pcrop-head span{font-size:12px;}
}

/* iOS Safari pietuvina lapu, kad fokusē lauku ar fontu < 16px (meklēšana, Repeat izvēle, slāņa lauki) - tāpēc lapa "izbīdījās" un nekas nesaderēja. Telefonā laukiem 16px */
@media (max-width:768px){
    #downloadFromPexels input,.pcrop select,
    .layer-options input[type="text"],.layer-options input[type="number"],.layer-options textarea,.layer-options select{font-size:16px;}
    .pcrop button,.pcrop select,.pcrop label{touch-action:manipulation;}
}

/* apgriešanas logs: kamēr ielādējas pilnā kvalitāte, redzams sīktēls ar norādi un griežamu indikatoru */
.pcrop-badge{position:absolute;left:50%;top:10px;transform:translateX(-50%);display:flex;align-items:center;gap:8px;padding:6px 12px;border-radius:999px;background:rgba(21,25,30,.82);color:#fff;font:600 12px var(--brand-font, inherit);line-height:1;white-space:nowrap;pointer-events:none;z-index:3;}
.pcrop-spin{width:14px;height:14px;border:2px solid rgba(255,255,255,.35);border-top-color:#fff;border-radius:50%;animation:pcrop-rot .8s linear infinite;}
@keyframes pcrop-rot{to{transform:rotate(360deg);}}

/* foto/izgriezuma dialogs: "Place as" izvēle un raksta iestatījumi */
.pcrop-pat{display:inline-flex;align-items:center;gap:8px;}
.pcrop-cm{display:flex;align-items:center;gap:6px;font:600 13px var(--brand-font, inherit);color:#15191E;}
.pcrop-cm i{font-style:normal;}
.pcrop-cm-in{width:64px;height:30px;border:1px solid #D5DAE1;border-radius:6px;padding:0 6px;font:600 13px var(--brand-font, inherit);}
.pcrop-layout-sel{height:30px;border:1px solid #D5DAE1;border-radius:6px;padding:0 6px;font:600 13px var(--brand-font, inherit);background:#fff;color:#15191E;}
@media (max-width:768px){ .pcrop-cm-in,.pcrop-layout-sel{font-size:16px;} }
@media (max-width:560px){ .pcrop-pat{flex:1 1 100%;order:0;} .pcrop-sq{order:0;} .pcrop-rep{margin-left:auto;} }

/* "Place the photo": kopiju skaits + motīva izmērs; vadīklas vienā rindā, pogas zem tām */
.pcrop-foot .pcrop-sp{flex:0 0 100%;height:0;}
.pcrop-foot .pcrop-cancel{margin-left:auto;}
.pcrop-pat{flex-wrap:wrap;}
.pcrop-copies-in{width:64px;height:30px;border:1px solid #D5DAE1;border-radius:6px;padding:0 6px;font:600 13px var(--brand-font, inherit);}
@media (max-width:768px){ .pcrop-copies-in{font-size:16px;} }

/* Pattern sadaļa (kā Repper): attēls ar atlases rāmi augšā, izkārtojumu pogas ar lietotāja attēla priekšskatījumu */
.pattern-area{margin:4px 0 14px;}
.pattern-area-head{display:flex;flex-direction:column;gap:2px;margin-bottom:8px;}
.pattern-area-head b{font:700 14px var(--brand-font, inherit);color:#15191E;}
.pattern-area-head span{font:400 12px/16px var(--brand-font, inherit);color:#6b7280;}
.pattern-area #pattern-container{overflow:hidden;border-radius:8px;background:#EEF0F3;line-height:0;}
.pattern-area .pattern-square{box-sizing:border-box;border:2px solid #fff !important;box-shadow:0 0 0 1px rgba(0,0,0,.55),0 0 0 9999px rgba(15,18,24,.45);touch-action:none;}
.pattern-area .pattern-h{position:absolute;width:12px;height:12px;background:#fff;border:1.5px solid rgba(0,0,0,.65);border-radius:3px;box-sizing:border-box;pointer-events:none;}
.pattern-area .h-nw{left:-7px;top:-7px;} .pattern-area .h-ne{right:-7px;top:-7px;} .pattern-area .h-sw{left:-7px;bottom:-7px;} .pattern-area .h-se{right:-7px;bottom:-7px;}
.pattern-area .h-n{left:calc(50% - 6px);top:-7px;} .pattern-area .h-s{left:calc(50% - 6px);bottom:-7px;} .pattern-area .h-w{left:-7px;top:calc(50% - 6px);} .pattern-area .h-e{right:-7px;top:calc(50% - 6px);}
.pattern-area-info{margin-top:8px;font:600 12px/16px var(--brand-font, inherit);color:#4b5563;}
.pattern-area-info.is-good{color:#1a7f37;} .pattern-area-info.is-mid{color:#9a6700;} .pattern-area-info.is-bad{color:#cf222e;}

/* Rāmja forma (trijstūris pēc izkārtojuma veida), bez pārlūka zilās iezīmēšanas, ikonu izlīdzināšana */
.pattern-area, .pattern-area *{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;}
.pattern-area img{-webkit-user-drag:none;user-drag:none;pointer-events:none;}
.pattern-area .pattern-square{overflow:visible;}
.pattern-area .pattern-shape{position:absolute;left:0;top:0;width:100%;height:100%;pointer-events:none;}
.pattern-area .ps-dim{fill:rgba(15,18,24,.55);}
/* Rotate: pagriezts atlases rāmis (kā Repper); pats nepagrieztais rāmis paliek vilkšanai/izmēra maiņai kā plāns raustīts kontūrs */
.pattern-area .pattern-rot-vis{position:absolute;left:-2px;top:-2px;right:-2px;bottom:-2px;display:none;box-sizing:border-box;border:2px solid #fff;box-shadow:0 0 0 1px rgba(0,0,0,.55),0 0 0 9999px rgba(15,18,24,.45);pointer-events:none;transform-origin:50% 50%;}
.pattern-area .pattern-shape{transform-origin:50% 50%;}
.pattern-area .pattern-square.is-rot{border:1px dashed rgba(255,255,255,.6) !important;box-shadow:none !important;}
.pattern-area .pattern-square.is-rot .pattern-rot-vis{display:block;}
.pattern-area .pattern-square.is-rot .pattern-shape .ps-dim{display:none;}
.pattern-area .ps-poly{fill:none;stroke:#fff;stroke-width:1.6;vector-effect:non-scaling-stroke;}
.layer-options-content .layer-patterns .layer-pattern{justify-content:flex-start;align-self:flex-start;}
.layer-patterns .layer-pattern .layer-pattern-title{min-height:36px;text-align:center;}

/* Zoom josla (kā Repper): mīnuss - josla - pluss */
.pattern-zoom-row{display:flex;align-items:center;gap:10px;margin:6px 0 2px;}
.pattern-zoom-row span{font:600 16px var(--brand-font, inherit);color:#4b5563;width:14px;text-align:center;}
.pattern-zoom-row input[type=range]{flex:1 1 auto;min-width:0;accent-color:var(--brand-accent,#0B7AC2);height:24px;cursor:pointer;}
.pattern-zoom-cm{font:600 13px var(--brand-font, inherit);color:#4b5563;}
.pcrop-zoomwrap{display:flex;align-items:center;gap:8px;font:600 13px var(--brand-font, inherit);color:#15191E;}
.pcrop-zoomwrap i{font-style:normal;}
.pcrop-zoomwrap input[type=range]{width:160px;accent-color:var(--brand-accent,#0B7AC2);cursor:pointer;}
.pcrop-zoom-cm{font-weight:600;color:#4b5563;min-width:54px;}

/* admin 3D modeļa lapa: īss ieteikums blakus ⋮ izvēlnei, kur atrodams sākuma 3D skats / materiāli */
.model-actions{align-items:center;}
.model-actions-hint{margin-right:10px;font:400 12px/16px var(--brand-font, inherit);color:#6b7280;text-align:right;max-width:70%;}

/* 3D skata īss padoms par griešanu / tuvināšanu (environment.js setupPreviewDrag) */
.tool-3d-hint{position:absolute;left:50%;bottom:14px;transform:translateX(-50%);z-index:5;max-width:90%;padding:8px 14px;border-radius:999px;background:rgba(21,25,30,.78);color:#fff;font:500 12.5px var(--brand-font,inherit);text-align:center;pointer-events:none;transition:opacity .4s;}
.tool-3d-hint.is-hidden{opacity:0;}

/* Admina paša 2D foto: tiek "iemultiplicēts" dizainam (main.js setupOwnPhotoMultiply) */
.canvas-container .own-photo-multiply{position:absolute;pointer-events:none;mix-blend-mode:multiply;max-width:none;max-height:none;user-select:none;-webkit-user-select:none;}
/* Iegults veikala dialogā šaurā ekrānā (telefonā): veikala krustiņš ir augšējā labajā stūrī - rīka 3D / Print areas / aizvērt pogas to nepārklāj */
@media (max-width:700px){html.tool-embedded .tool-3d-btn,html.tool-embedded #pa-guides-tool{right:62px;}
    /* 3D skatā aizvēršanas × (69px) atrodas tajā pašā vietā - "Print areas" poga tam blakus (pa kreisi), nevis zem tā */
    html.tool-embedded body.view-3d #pa-guides-tool,html.tool-embedded body.tool-3d-button #pa-guides-tool{right:139px;}}

/* "Full view" (telefons, modern izkārtojums): poga skatuves augšā pa kreisi; paslēpj apakšējo paneli, lai 3D modelis aizņem visu ekrānu */
#full-view-btn{display:none;position:absolute;top:9px;left:8px;z-index:7;width:40px;height:40px;padding:0;align-items:center;justify-content:center;border:1px solid #DFE4EA;border-radius:50%;background:#fff;color:#15191E;cursor:pointer;box-shadow:0 4px 14px rgba(20,30,50,.12);}
#full-view-btn .fv-collapse{display:none;}
body.full-view #full-view-btn .fv-expand{display:none;}
body.full-view #full-view-btn .fv-collapse{display:block;}
@media (max-width:768px){
    html.tool-layout-modern body.view-3d:not(.admin) #full-view-btn{display:inline-flex;}
    html.tool-layout-modern body.view-3d.full-view:not(.admin){--tl-panel-h:0px;}
    /* Full view = tikai apskate: atpakaļ / uz priekšu / Reset (rediģēšanas pogas) paslēptas, paliek tuvināt/tālināt, krāsas, Print areas, aizvērt */
    html.tool-layout-modern body.view-3d.full-view:not(.admin) .footer-worksheet .undo,
    html.tool-layout-modern body.view-3d.full-view:not(.admin) .footer-worksheet .redo,
    html.tool-layout-modern body.view-3d.full-view:not(.admin) .footer-worksheet .reset{display:none !important;}
    html.tool-layout-modern body.view-3d.full-view:not(.admin) .navigation-content.navigation-worksheet-tools,
    html.tool-layout-modern body.view-3d.full-view:not(.admin) .navigation-content.navigation-worksheet-tools.collapsed{display:none;}
}

/* Slāņu secības "tvēriens" skārienierīcēs (functions.js initSortable): vilkt var tikai aiz tā, lai panelis ritinātos kā ierasts */
.layer-grip{display:flex;align-items:center;justify-content:center;flex:0 0 30px;width:30px;min-height:44px;align-self:stretch;margin-right:2px;color:#9AA5B1;touch-action:none;cursor:grab;-webkit-user-select:none;user-select:none;}
.layer-options.ui-sortable-helper{box-shadow:0 8px 24px rgba(20,30,50,.22);background:#fff;}
#layout-options-container.is-sorting .layer-options > *:not(.layer-source){display:none !important;}

/* Review solis (Next): 3D skatā tikai pats objekts - bez Undo/Redo/Reset, Print areas pārslēga un 3D aizvēršanas krustiņa; Zoom paliek */
body.save-action .footer-worksheet .undo,body.save-action .footer-worksheet .redo,body.save-action .footer-worksheet .reset,body.save-action #close-3d-btn,body.save-action #pa-guides-tool{display:none !important;}

/* Admin sākuma panelis (/admin/?action=home) */
.admin-home .admin-home-sub { margin: 2px 0 0; color: #6D7F9F; font-size: 13.5px; }
.admin-home .add-product-top { margin-bottom: 16px; }
.admin-home-card { background: #fff; border: 1px solid #E1E5EA; border-radius: 12px; padding: 18px 20px; margin-bottom: 16px; }
.admin-home-card h2 { margin: 0; font-size: 16px; line-height: 1.3; font-weight: 600; color: #15191E; }
.admin-home-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.admin-home-more { font-size: 13px; font-weight: 600; color: var(--brand-accent, #9A2F58); text-decoration: none; white-space: nowrap; }
.admin-home-more:hover { text-decoration: underline; }
.admin-home-bar { height: 6px; margin: 12px 0 4px; border-radius: 999px; background: #E9EDF2; overflow: hidden; }
.admin-home-bar span { display: block; height: 100%; border-radius: 999px; background: var(--brand-accent, #9A2F58); transition: width .4s ease; }
.admin-home-steps { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.admin-home-step { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid #E1E5EA; border-radius: 10px; }
.admin-home-step.is-done { background: #F4FAF6; border-color: #D3EBDB; }
.admin-home-step.is-next { border-color: var(--brand-accent, #9A2F58); box-shadow: 0 0 0 3px rgba(154, 47, 88, .10); }
.admin-home-step-ico { flex: 0 0 28px; width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #E9EDF2; color: #5B6675; font-size: 13px; font-weight: 700; }
.admin-home-step.is-done .admin-home-step-ico { background: #1E7A3C; color: #fff; }
.admin-home-step.is-next .admin-home-step-ico { background: var(--brand-accent, #9A2F58); color: #fff; }
.admin-home-step-t { flex: 1 1 auto; min-width: 0; }
.admin-home-step-t b { display: block; font-size: 14px; color: #15191E; }
.admin-home-step-t span { display: block; margin-top: 2px; font-size: 12.5px; line-height: 1.4; color: #6D7F9F; }
.admin-home-step.is-done .admin-home-step-t b { color: #1E7A3C; }
.admin-home-step .btn { flex: 0 0 auto; }
.admin-home-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin-bottom: 16px; }
.admin-home-tile { display: flex; flex-direction: column; gap: 2px; padding: 16px 18px; background: #fff; border: 1px solid #E1E5EA; border-radius: 12px; text-decoration: none; color: inherit; }
.admin-home-tile:hover { border-color: var(--brand-accent, #9A2F58); }
.admin-home-tile-l { font-size: 12.5px; font-weight: 600; color: #6D7F9F; text-transform: uppercase; letter-spacing: .03em; }
.admin-home-tile b { font-size: 30px; line-height: 1.2; font-weight: 700; color: #15191E; }
.admin-home-tile-s { font-size: 12.5px; color: #6D7F9F; }
.admin-home-attention { border-color: #F0D9A8; background: #FFFBF0; }
.admin-home-att { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.admin-home-att li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid #F3E7C8; }
.admin-home-att li:first-child { border-top: 0; }
.admin-home-att-t { font-size: 14px; color: #3B3320; }
.admin-home-cols { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.admin-home-tbl { overflow-x: auto; margin-top: 10px; }
.admin-home-tbl table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.admin-home-tbl th { text-align: left; font-size: 12px; font-weight: 600; color: #6D7F9F; padding: 6px 8px; border-bottom: 1px solid #E1E5EA; white-space: nowrap; }
.admin-home-tbl td { padding: 10px 8px; border-bottom: 1px solid #F0F2F4; vertical-align: middle; }
.admin-home-tbl tr:last-child td { border-bottom: 0; }
.admin-home-empty { margin: 10px 0 0; font-size: 13.5px; line-height: 1.5; color: #6D7F9F; }
.admin-home-search { display: flex; gap: 8px; margin: 12px 0; }
.admin-home-search input[type=search] { flex: 1 1 auto; min-width: 0; }
.admin-home-help { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-direction: column; }
.admin-home-help li { border-top: 1px solid #F0F2F4; }
.admin-home-help li:first-child { border-top: 0; }
.admin-home-help a { display: block; padding: 8px 2px; font-size: 14px; color: #15191E; text-decoration: none; }
.admin-home-help a:hover { color: var(--brand-accent, #9A2F58); }
@media (max-width: 900px) {
    .admin-home-cols { grid-template-columns: minmax(0, 1fr); }
    .admin-home-step { flex-wrap: wrap; }
    .admin-home-step .btn { margin-left: 40px; }
}

/* Admin sākuma panelis: darbvietas kartītes, patēriņa un maksājumu lapas */
.admin-home-section { margin: 22px 0 8px; }
.admin-home-h2 { margin: 0 0 14px; font-size: 18px; font-weight: 700; color: #15191E; }
.admin-home-next { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 0 16px; padding: 16px 20px; border-radius: 14px; background: #fff; border: 1px solid #E1E5EA; }
.admin-home-next-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.admin-home-next-k { font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--brand-accent, #9A2F58); }
.admin-home-next-t b { font-size: 16px; color: #15191E; }
.admin-model-promo { background: var(--brand-accent-tint, #F6E9EF); border-color: transparent; }
.admin-model-promo .admin-home-next-t span { color: #3D4A5C; }
/* 3D modeļa baneris: ikona + teksts + poga vienā grupā pa kreisi; fons izplūst uz baltu, lai plašā ekrānā nav tukša zila lauka */
.admin-model-promo { justify-content: flex-start; gap: 20px; padding: 20px 24px; background: linear-gradient(90deg, var(--brand-accent-tint, #E3F1FC) 0%, var(--brand-accent-tint, #E3F1FC) 38%, #fff 100%); border: 1px solid var(--brand-accent-soft, #A9D4F5); }
.admin-model-promo-ic { flex: none; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: #fff; box-shadow: 0 2px 8px rgba(20,30,50,.10); }
.admin-model-promo .admin-home-next-t { flex: 0 1 600px; gap: 4px; }
.admin-model-promo .admin-home-next-t b { font-size: 17px; }
.admin-model-promo .admin-home-next-t span { font-size: 14px; line-height: 1.45; }
.admin-model-promo .ui-btn { flex: none; margin-left: 8px; }
.studio-main .admin-model-promo { margin: 18px 0 0; }
@media (max-width: 640px) { .admin-model-promo { flex-direction: column; align-items: stretch; } .admin-model-promo .ui-btn { text-align: center; } }
@media (max-width: 640px) { .admin-model-promo-ic { align-self: flex-start; width: 48px; height: 48px; } .admin-model-promo .ui-btn { margin-left: 0; } }
.admin-home-next-t span:last-child { font-size: 13.5px; color: #5B6B80; }
.admin-home-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; margin: 0 0 16px; }
.admin-home-stat { display: flex; flex-direction: column; gap: 3px; padding: 16px 20px; background: #fff; border: 1px solid #E1E5EA; border-radius: 14px; text-decoration: none; color: inherit; }
.admin-home-stat:hover { border-color: #15191E; }
.admin-home-stat span { font-size: 13px; font-weight: 600; color: #6D7F9F; }
.admin-home-stat b { font-size: 28px; line-height: 1.2; font-weight: 700; color: #15191E; }
.admin-home-stat small { font-size: 12.5px; color: #6D7F9F; }
.admin-home-stat-bar { display: block; height: 4px; margin-top: 8px; border-radius: 999px; background: #E9EDF2; overflow: hidden; }
.admin-home-stat-bar i { display: block; height: 100%; background: var(--brand-accent, #9A2F58); border-radius: 999px; }
.admin-home-prods { display: flex; flex-direction: column; margin-top: 8px; }
.admin-home-prod { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto 150px; align-items: center; gap: 16px; padding: 12px 0; border-top: 1px solid #F0F2F4; }
.admin-home-prod:first-child { border-top: 0; }
.admin-home-prod-img { width: 64px; height: 64px; border-radius: 12px; background: #EEF1F5; overflow: hidden; display: block; }
.admin-home-prod-img img { display: block; width: 100%; height: 100%; object-fit: contain; }
.admin-home-prod-n b { font-size: 15px; color: #15191E; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* produkta soļi (Set up / Ready / In your shop) ir STATUSS, nevis pogas: ikona + teksts bez aizpildītas "pogas" formas */
.admin-home-prod-steps { display: flex; align-items: center; gap: 16px; }
.admin-home-step-cap { display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; background: none; color: #8A97A8; font-size: 13px; font-weight: 500; white-space: nowrap; cursor: default; }
.admin-home-step-cap::before { content: ""; flex: none; width: 16px; height: 16px; box-sizing: border-box; border-radius: 50%; border: 1.5px solid #C3CBD5; background: #fff; }
.admin-home-step-cap.is-done { color: #15191E; }
.admin-home-step-cap.is-done::before { border-color: var(--ui-success, #1E8E4A); background: var(--ui-success, #1E8E4A) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'><path d='M5 12.5l4.5 4.5L19 7.5'/></svg>") center/11px no-repeat; }
.admin-home-step-cap.is-now { color: var(--brand-accent, #0B7AC2); font-weight: 600; }
.admin-home-step-cap.is-now::before { border-color: var(--brand-accent, #0B7AC2); background: radial-gradient(circle, var(--brand-accent, #0B7AC2) 0 3px, #fff 3.5px); }
.admin-home-prod-act { text-align: right; }
@media (max-width: 800px) { .admin-home-prod { grid-template-columns: 52px minmax(0, 1fr); } .admin-home-prod-steps { grid-column: 1 / -1; flex-wrap: wrap; } .admin-home-prod-act { grid-column: 1 / -1; text-align: left; } .admin-home-next { flex-direction: column; align-items: flex-start; } }
.admin-home-search-btn { height: var(--ui-h-md, 42px) !important; padding: 0 16px !important; font-size: 14px !important; }
.admin-use-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin: 4px 0 16px; }
.admin-use-tile { display: flex; flex-direction: column; gap: 4px; padding: 18px 20px; border-radius: 14px; background: #E8F1FD; color: #1B5FB0; }
.admin-use-tile.is-green { background: #E3F6E8; color: #14602B; }
.admin-use-tile.is-amber { background: #FFF1D6; color: #8A5A00; }
.admin-use-tile span { font-size: 13px; font-weight: 600; }
.admin-use-tile b { font-size: 32px; line-height: 1.2; font-weight: 700; color: #15191E; }
.admin-use-tile b.is-text { font-size: 19px; line-height: 1.4; }
.admin-use-cols { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.admin-use-chart { display: flex; align-items: flex-end; gap: 12px; height: 190px; margin-top: 14px; }
.admin-use-col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 6px; }
.admin-use-bar { display: block; width: 100%; max-width: 46px; border-radius: 8px 8px 0 0; background: #C9DAF3; min-height: 3px; }
.admin-use-bar.is-now { background: var(--brand-accent, #9A2F58); }
.admin-use-n { font-size: 12px; font-weight: 600; color: #15191E; }
.admin-use-m { font-size: 12px; color: #6D7F9F; }
.admin-use-list { list-style: none; margin: 10px 0 8px; padding: 0; }
.admin-use-list li { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-top: 1px solid #F0F2F4; font-size: 14px; color: #15191E; }
.admin-use-list li:first-child { border-top: 0; }
.admin-use-none { color: #6D7F9F !important; }
.admin-use-note { margin: 8px 0 10px; font-size: 13px; line-height: 1.5; color: #6D7F9F; }
.admin-pay-empty { margin: 6px 0 10px; font-size: 14px; line-height: 1.5; color: #5B6B80; }
@media (max-width: 800px) { .admin-use-cols { grid-template-columns: minmax(0, 1fr); } }
.admin-home-h2 { margin: 24px 0 14px; font-size: 18px; font-weight: 700; color: #15191E; }
.admin-home-how { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; padding: 22px; align-items: center; }
.admin-home-how-media { border-radius: 14px; overflow: hidden; background: #EEF1F5; aspect-ratio: 4 / 3; }
.admin-home-how-media img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.admin-home-how-body h2 { margin: 0 0 14px; font-size: 18px; }
.admin-home-how-body ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.admin-home-how-body li { display: flex; gap: 14px; align-items: flex-start; }
.admin-home-how-n { flex: 0 0 28px; width: 28px; height: 28px; border-radius: 50%; background: var(--brand-ink, #15191E); color: #fff; font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.admin-home-how-body li b { display: block; font-size: 15px; color: #15191E; }
.admin-home-how-body li span:not(.admin-home-how-n) { display: block; margin-top: 2px; font-size: 13.5px; line-height: 1.5; color: #5B6B80; }
.admin-home-cans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 8px; }
.admin-home-can { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; background: #fff; border: 1px solid #E1E5EA; border-radius: 14px; text-decoration: none; color: inherit; }
.admin-home-can:hover { border-color: #15191E; }
.admin-home-can b { font-size: 15px; color: #15191E; }
.admin-home-can span { font-size: 13.5px; line-height: 1.5; color: #5B6B80; flex: 1; }
.admin-home-can em { margin-top: 6px; font-style: normal; font-size: 13px; font-weight: 600; color: var(--brand-accent, #9A2F58); }
@media (max-width: 900px) { .admin-home-how { grid-template-columns: minmax(0, 1fr); } .admin-home-cans { grid-template-columns: minmax(0, 1fr); } }
/* Studijas: augšējā josla, virsraksts, piemēri, darbība un iestatījumi */
.studio-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; }
.studio-tab { padding: 9px 18px; border-radius: 6px; border: 1px solid #C9D0DA; background: #fff; color: #15191E; font-size: 14px; font-weight: 600; text-decoration: none; }
.studio-tab:hover { border-color: #15191E; }
.studio-tab.is-on { background: var(--brand-ink, #15191E); border-color: var(--brand-ink, #15191E); color: #fff; }
.studio-hero { text-align: center; max-width: 720px; margin: 34px auto 26px; }
.studio-hero-k { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 600; color: #6D7F9F; }
.studio-hero h1 { margin: 0; font-size: 38px; line-height: 1.15; font-weight: 700; letter-spacing: -.01em; color: #15191E; }
.studio-hero h1 em { font-style: normal; color: var(--brand-accent, #9A2F58); background: linear-gradient(90deg, var(--brand-accent, #9A2F58), #7B5BE0 60%, #C24E9A); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.studio-hero p { margin: 12px auto 0; max-width: 620px; font-size: 15.5px; line-height: 1.55; color: #5B6B80; }
.studio-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 0 0 22px; }
.studio-card { display: flex; flex-direction: column; gap: 14px; padding: 14px; background: #fff; border: 1px solid #E1E5EA; border-radius: 18px; text-decoration: none; color: inherit; transition: border-color .15s ease, box-shadow .15s ease; }
.studio-card:hover { border-color: #15191E; box-shadow: 0 10px 28px rgba(21, 25, 30, .10); }
.studio-card-t { display: flex; flex-direction: column; gap: 4px; padding: 0 6px 6px; }
.studio-card-t b { font-size: 17px; color: #15191E; }
.studio-card-t span { font-size: 13.5px; line-height: 1.5; color: #5B6B80; }
.studio-pair { display: grid; grid-template-columns: minmax(0, 1fr) 44px minmax(0, 1fr); align-items: stretch; }
.studio-pair-a { display: block; aspect-ratio: 1 / 1; border-radius: 14px; overflow: hidden; background: #EEF1F5; }
.studio-pair-a img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.studio-pair-text { display: flex; align-items: center; justify-content: center; padding: 14px; background: #fff; box-shadow: 0 6px 22px rgba(21, 25, 30, .08); }
.studio-pair-text span { font-size: 14px; line-height: 1.4; text-align: center; color: #15191E; font-weight: 600; }
.studio-pair.is-big { grid-template-columns: minmax(0, 1fr) 84px minmax(0, 1fr); max-width: 760px; margin: 0 auto 26px; }
.studio-pair.is-big .studio-pair-a { aspect-ratio: 4 / 3; border-radius: 18px; }
.studio-pair.is-big .studio-pair-text span { font-size: 18px; }
.studio-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 22px; align-items: start; }
.studio-action { max-width: 760px; margin: 0 auto; }
.studio-drop, .studio-box { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 24px; background: #fff; border: 1px solid #E1E5EA; border-radius: 18px; text-align: center; text-decoration: none; color: inherit; }
.studio-drop { border-style: dashed; border-color: #B7C0CC; }
.studio-drop:hover { border-color: #15191E; }
.studio-drop b, .studio-box > b { font-size: 16px; color: #15191E; }
.studio-drop > span:not(.ui-btn) { font-size: 13.5px; color: #6D7F9F; }
.studio-hint { margin: 0; font-size: 13px; line-height: 1.5; color: #6D7F9F; }
.studio-prompt { width: 100%; padding: 14px 16px; border: 1px solid #C9D0DA; border-radius: 12px; background: #F7F8FA; color: #6D7F9F; font-size: 14px; text-align: left; }
.studio-rows { width: 100%; display: flex; flex-direction: column; text-align: left; }
.studio-row { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 10px 0; border-top: 1px solid #F0F2F4; }
.studio-row:first-child { border-top: 0; }
.studio-row-img { width: 48px; height: 48px; border-radius: 10px; background: #EEF1F5; overflow: hidden; display: block; }
.studio-row-img img { display: block; width: 100%; height: 100%; object-fit: contain; }
.studio-row b { font-size: 14.5px; color: #15191E; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.studio-side { background: #fff; border: 1px solid #E1E5EA; border-radius: 18px; padding: 18px 20px; }
.studio-side h2 { margin: 0 0 8px; font-size: 16px; color: #15191E; }
.studio-set { padding: 12px 0; border-top: 1px solid #F0F2F4; }
.studio-set:first-of-type { border-top: 0; }
.studio-set-l { display: block; margin-bottom: 5px; font-size: 12.5px; font-weight: 600; color: #6D7F9F; }
.studio-set-v { font-size: 14px; line-height: 1.5; color: #15191E; }
.studio-set-v b { font-size: 18px; }
.studio-set-link { font-size: 13.5px; font-weight: 600; color: var(--brand-accent, #9A2F58); text-decoration: none; }
.studio-set-switch { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 14px; color: #15191E; }
.studio-set-note { font-size: 13px; line-height: 1.5; color: #6D7F9F; }
@media (max-width: 1100px) { .studio-grid { grid-template-columns: minmax(0, 1fr); } }
.studio-cards.cards-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 1500px) { .studio-cards.cards-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 900px) { .studio-cards, .studio-cards.cards-4 { grid-template-columns: minmax(0, 1fr); } .studio-hero h1 { font-size: 28px; } }
.studio-pair-a { position: relative; }
.studio-link { position: relative; display: block; color: #9AA6D8; }
.studio-link svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.studio-link-dot { position: absolute; left: 50%; top: 52%; width: 28px; height: 28px; margin: -14px 0 0 -14px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; background: linear-gradient(135deg, var(--brand-accent, #9A2F58), #7B5BE0); box-shadow: 0 0 0 5px rgba(123, 91, 224, .14); }
.studio-pair.is-big .studio-link-dot { width: 34px; height: 34px; margin: -17px 0 0 -17px; }
.studio-badge { position: absolute; right: 8px; top: 8px; display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px; background: linear-gradient(135deg, var(--brand-accent, #9A2F58), #7B5BE0); color: #fff; font-size: 11.5px; font-weight: 700; letter-spacing: .01em; }
.studio-pair.is-big .studio-badge { right: 12px; top: 12px; padding: 5px 12px; font-size: 12.5px; }
.admin-home, .admin-studio { position: relative; }
.admin-home:before, .admin-studio:before { content: ""; position: absolute; inset: 0 -40px auto -40px; height: 520px; pointer-events: none; z-index: 0; background: radial-gradient(520px 280px at 22% 18%, rgba(123, 91, 224, .10), transparent 70%), radial-gradient(560px 300px at 78% 26%, rgba(46, 140, 220, .10), transparent 70%), radial-gradient(420px 240px at 55% 70%, rgba(194, 78, 154, .07), transparent 70%); }
.admin-home > *, .admin-studio > * { position: relative; z-index: 1; }
.studio-pair { padding: 16px; border-radius: 16px; background: linear-gradient(135deg, #EEF1FB 0%, #F4EEF8 100%); }
.studio-pair-a { aspect-ratio: 4 / 5; border-radius: 12px; box-shadow: 0 8px 22px rgba(21, 25, 30, .10); background: #fff; }
.studio-pair-a img { object-fit: cover; object-position: center 25%; }
.studio-pair-text { aspect-ratio: 4 / 5; box-shadow: 0 8px 22px rgba(21, 25, 30, .10); }
.studio-pair.is-big { padding: 24px; border-radius: 22px; max-width: 760px; }
.studio-pair.is-big .studio-pair-a, .studio-pair.is-big .studio-pair-text { aspect-ratio: 4 / 4.2; border-radius: 16px; }
.studio-card { padding: 12px; }
/* Studija: Seprint krāsas (zīmola zilā + tinte), pilns platums, bez tukšumiem */
.admin-home:before, .admin-studio:before { display: none; }
.admin-home, .admin-studio { max-width: 1440px; }
.studio-hero h1 em { background: none; -webkit-text-fill-color: currentColor; color: var(--brand-accent, #9A2F58); }
.studio-link { color: #9AA6B8; }
.studio-link-dot { background: var(--brand-accent, #9A2F58); box-shadow: 0 0 0 5px color-mix(in srgb, var(--brand-accent, #9A2F58) 16%, transparent); }
.studio-badge { background: var(--brand-ink, #15191E); }
.studio-pair { background: #EAEEF3; }
.studio-grid { grid-template-columns: minmax(0, 1fr) 340px; align-items: stretch; gap: 24px; }
.studio-pair.is-big { max-width: none; width: 100%; box-sizing: border-box; }
.studio-pair.is-big .studio-pair-a, .studio-pair.is-big .studio-pair-text { aspect-ratio: 4 / 3.6; }
.studio-action { max-width: none; }
.studio-side { align-self: stretch; }
@media (max-width: 1100px) { .studio-grid { grid-template-columns: minmax(0, 1fr); } }
.studio-pair.is-single { display: block; padding: 0; background: #EDF1F5; overflow: hidden; }
.studio-single { display: block; position: relative; aspect-ratio: 1.85 / 1; }
.studio-single img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 55%; }
.studio-pair.is-single.is-big { padding: 0; }
.studio-pair.is-single.is-big .studio-single { aspect-ratio: 2.3 / 1; }
.studio-pair.is-single .studio-badge { right: 12px; top: 12px; }
.studio-single img { object-fit: contain; object-position: center; }
.studio-pair.is-single.is-big .studio-single { aspect-ratio: 2 / 1; }
.studio-pair.is-wide .studio-pair-a { aspect-ratio: 560 / 480; }
.studio-pair.is-wide .studio-pair-a img { object-fit: cover; object-position: center; }
.studio-pair.is-wide.is-big { grid-template-columns: minmax(0, 1fr) 64px minmax(0, 1fr); }
.studio-card .studio-pair.is-wide { flex: 1 1 auto; align-items: center; }
/* Konts (profils): platas kartes ar rindām (etiķete | vērtība | darbība), pasūtījumu e-pasti; ievades lauku dubultās apmales labojums */
.admin-profile-page.admin-acct { max-width: 980px; margin: 24px auto 56px; padding: 0 20px; }
.admin-acct-title { margin: 0 0 16px; font-size: 26px; line-height: 1.2; font-weight: 700; color: #15191E; }
.admin-acct-card { background: #fff; border: 1px solid #E1E5EA; border-radius: 16px; padding: 24px 28px; margin: 0 0 18px; }
.admin-acct-head h2 { margin: 0 0 6px; font-size: 18px; line-height: 1.3; font-weight: 700; color: #15191E; }
.admin-acct-head p { margin: 0 0 14px; max-width: 700px; font-size: 14px; line-height: 1.55; color: #5B6B80; }
.admin-acct-row { display: grid; grid-template-columns: 170px minmax(0, 1fr) auto; gap: 20px; align-items: center; padding: 16px 0; border-top: 1px solid #EEF1F5; }
.admin-acct-row:first-of-type { border-top: 0; }
.admin-acct-l { font-size: 14px; font-weight: 600; color: #6D7F9F; }
.admin-acct-l label { cursor: pointer; }
.admin-acct-v { display: flex; flex-direction: column; gap: 3px; min-width: 0; font-size: 15px; color: #15191E; word-break: break-word; }
.admin-acct-muted { font-size: 13px; font-weight: 400; color: #8A97A8; }
/* lauku izskats: css/ui-kit.css (.ui-input / .ui-select); šeit tikai izkārtojums */
input.ui-input.admin-acct-input, textarea.ui-textarea.admin-acct-input { max-width: 480px; }
select.ui-select.admin-acct-select { width: auto; min-width: 160px; }
.admin-acct-foot { display: flex; justify-content: flex-end; padding-top: 8px; }
.admin-acct-foot.is-left { justify-content: flex-start; }
.admin-acct-danger { border-color: #F4D6D2; }
.admin-acct-tablewrap { overflow-x: auto; border: 1px solid #E7EBF0; border-radius: 12px; }
.admin-acct-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.admin-acct-table th { padding: 11px 16px; text-align: left; font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: #6D7F9F; background: #F7F9FB; border-bottom: 1px solid #E7EBF0; }
.admin-acct-table td { padding: 13px 16px; border-bottom: 1px solid #F0F2F4; vertical-align: middle; color: #15191E; }
.admin-acct-table tr:last-child td { border-bottom: 0; }
.admin-acct-table td .admin-acct-inline select { height: 38px; padding: 0 10px; border: 1px solid #C3CBD5; border-radius: 8px; background: #fff; font: inherit; font-size: 14px; }
.admin-acct-tag { display: inline-block; margin-left: 10px; padding: 2px 9px; border-radius: 999px; background: #E3F1FC; color: #08609A; font-size: 12px; font-weight: 600; }
.admin-acct-act { text-align: right; white-space: nowrap; }
.admin-acct-act form { display: inline-block; vertical-align: middle; }
.admin-acct-act form + form { margin-left: 18px; }
.admin-acct-add { margin-top: 20px; }
.admin-acct-inline { margin: 0; }
.admin-acct-add { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 16px 0 0; }
.admin-acct-add .admin-acct-input { flex: 1 1 260px; max-width: none; }
.admin-acct-note { margin: 12px 0 0; }
.admin-mr-item { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-top: 1px solid #EEF1F5; }
.admin-mr-item:first-of-type { border-top: 0; }
.admin-mr-main b { font-size: 15px; font-weight: 400; margin-right: 8px; }   /* saraksta teksts parasts (kita standarts) */
.admin-mr-act { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.admin-mr-form label { display: block; }
.admin-mr-need { display: flex; flex-direction: column; gap: 2px; margin: 0 0 12px; padding: 12px 14px; border: 1px solid #BFE0F5; border-radius: 10px; background: #F1F8FD; }
.admin-mr-need b { font-size: 15px; color: #15191E; }
.admin-mr-need span { font-size: 13px; line-height: 1.45; color: #4B5B73; }
.admin-mr-views { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.admin-mr-form label.admin-mr-slot { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 130px; padding: 10px; box-sizing: border-box; border: 1.5px dashed #C3CBD5; border-radius: 10px; background: #FAFBFC; cursor: pointer; text-align: center; overflow: hidden; }
.admin-mr-slot:hover, .admin-mr-slot.is-over { border-color: var(--brand-accent, #0B7AC2); background: #F1F8FD; }
.admin-mr-slot input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.admin-mr-slot .admin-mr-plus { font-size: 28px; line-height: 1; color: #8A97A8; }
.admin-mr-slot b { font-size: 14px; color: #15191E; }
.admin-mr-slot small { font-size: 12px; color: #8A97A8; }
.admin-mr-slot[data-view="front"] small { color: #B42318; font-weight: 600; }
.admin-mr-slot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.admin-mr-slot.has-photo { border-style: solid; border-color: #1F9D55; }
.admin-mr-slot.has-photo .admin-mr-plus, .admin-mr-slot.has-photo small { display: none; }
.admin-mr-slot.has-photo b { position: absolute; left: 0; right: 0; bottom: 0; padding: 4px 6px; background: rgba(21, 25, 30, .72); color: #fff; font-size: 12px; }
.admin-mr-slot .admin-mr-x { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; padding: 0; border: 0; border-radius: 50%; background: rgba(21, 25, 30, .78); color: #fff; font-size: 15px; line-height: 22px; cursor: pointer; z-index: 2; }
.admin-mr-price { display: flex; flex-direction: column; gap: 2px; margin: 0 0 10px; }
.admin-mr-price b { font-size: 20px; color: #15191E; }
.admin-mr-price span { font-size: 13px; color: #5B6B80; }
.admin-mr-count { margin: 10px 0 0; font-size: 13px; font-weight: 600; color: #8A97A8; }
.admin-mr-count.is-full { color: #1F9D55; }
@media (max-width: 560px) { .admin-mr-views { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.admin-mr-form label.admin-mr-drop { display: flex; min-height: 120px; max-width: none; margin: 0; }
.admin-mr-thumbs { display: flex; flex-wrap: wrap; gap: 10px; }
.admin-mr-thumbs:empty { display: none; }
.admin-mr-ph { display: flex; flex-direction: column; gap: 6px; width: 112px; }
.admin-mr-ph .admin-mr-thumb { width: 112px; height: 112px; }
.admin-mr-view { width: 100%; min-width: 0; height: 34px; font-size: 13px; padding-left: 8px; }
.admin-mr-onehint { display: block; margin-top: 8px; }
.admin-mr-one { display: flex; margin-top: 10px; }
.admin-mr-one[hidden] { display: none; }
.admin-mr-thumb { position: relative; width: 84px; height: 84px; border: 1px solid #DFE4EA; border-radius: 8px; overflow: hidden; background: #fff; }
.admin-mr-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.admin-mr-thumb button { position: absolute; top: 3px; right: 3px; width: 22px; height: 22px; padding: 0; border: 0; border-radius: 50%; background: rgba(21, 25, 30, .75); color: #fff; font-size: 15px; line-height: 22px; cursor: pointer; }
.admin-mr-dims { flex-direction: row; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
.admin-mr-dims label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: #5B6B80; }
.admin-mr-dims .admin-acct-input { width: 130px; }
.admin-mr-dims > .admin-acct-muted { flex-basis: 100%; }
@media (max-width: 760px) { .admin-mr-item { flex-direction: column; align-items: flex-start; } }
.admin-lay-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; margin: 4px 0 6px; }
.admin-lay-opt { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 14px 16px 14px 44px; border: 1px solid #C3CBD5; border-radius: 12px; background: #fff; cursor: pointer; }
.admin-lay-opt:hover { border-color: #8A97A8; }
.admin-lay-opt input { position: absolute; opacity: 0; pointer-events: none; }
.admin-lay-opt::before { content: ''; position: absolute; left: 16px; top: 17px; width: 16px; height: 16px; box-sizing: border-box; border: 2px solid #A9B3C1; border-radius: 50%; background: #fff; }
.admin-lay-opt:has(input:checked)::before { border-color: var(--brand-accent, #0B7AC2); background: radial-gradient(circle, var(--brand-accent, #0B7AC2) 0 3px, #fff 3.5px); }
.admin-lay-opt:has(input:focus-visible) { outline: 2px solid var(--brand-accent, #0B7AC2); outline-offset: 2px; }
.admin-lay-opt:has(input:checked) { border-color: var(--brand-accent, #0B7AC2); box-shadow: 0 0 0 3px rgba(11, 122, 194, .15); }
.admin-lay-name { font-size: 15px; font-weight: 700; color: #15191E; }
.admin-lay-desc { font-size: 13px; line-height: 1.45; color: #5B6B80; }
@media (max-width: 760px) { .admin-acct-row { grid-template-columns: minmax(0, 1fr); gap: 6px; } .admin-acct-act { text-align: left; } .admin-acct-card { padding: 20px 16px; } }
/* iepriekšējais ielogošanās/profila lauks: ietinuma apmale + modernās tēmas ievades apmale = dubultā "strīpa" */
html body.admin .admin-login-wrap .customTextInput input { border: 0 !important; box-shadow: none !important; background: transparent !important; }
.admin-login-wrap .customTextInput { border-radius: var(--ui-radius, 10px); border-color: var(--ui-line, #d5dae3); }
.admin-login-wrap .customTextInput:focus-within { border-color: var(--ui-accent, #0B7AC2); box-shadow: var(--ui-focus, 0 0 0 3px rgba(11, 122, 194, .28)); }
.admin-mr-cats { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 12px; }
.admin-mr-form label.admin-mr-cat { display: inline-flex; align-items: center; margin: 0; padding: 10px 18px; border: 1.5px solid #C3CBD5; border-radius: 12px; background: #fff; cursor: pointer; font-size: 15px; font-weight: 600; color: #15191E; }
.admin-mr-cat:hover { border-color: #8A97A8; }
.admin-mr-cat { gap: 10px; }
.admin-mr-cat:has(input:checked) { border-color: var(--brand-accent, #0B7AC2); background: #F1F8FD; box-shadow: 0 0 0 3px rgba(11, 122, 194, .12); }
.admin-mr-field { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: #5B6B80; }
.admin-mr-catpanel { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px; margin: 0 0 10px; }
.admin-mr-catpanel .admin-acct-select { min-width: 220px; }
.admin-mr-dimsum { font-size: 14px; padding-bottom: 12px; }
.admin-mr-custom { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; margin: 0 0 8px; }
.admin-mr-custom[hidden], .admin-mr-catpanel[hidden] { display: none; }
.admin-mr-custom .admin-acct-input { width: 130px; }
.admin-mr-custom > .admin-acct-muted { flex-basis: 100%; }
.admin-mr-form label.admin-mr-field { display: flex; }
.admin-mr-sizeline { display: flex; gap: 8px; align-items: center; }
.admin-mr-sizeline .ui-input { flex: 1 1 auto; min-width: 0; }
.admin-mr-sizeline .ui-select { flex: 0 0 auto; width: auto; min-width: 74px; }

.admin-mr-form label.ui-check { display: flex; }
.admin-mr-form label.admin-mr-team { margin-top: 12px; font-size: 14px; color: #4B5B73; }

/* Vienots tumšs tooltip visā produktā (jQuery UI tooltip no title=""): tāds pats kā pārējie mazie tooltipi (adminFlashTip, rīka padomi) */
.ui-tooltip { background: #1c2333; color: #fff; border: 0; border-radius: 8px; padding: 7px 11px; font-size: 12.5px; line-height: 1.4; max-width: 320px; box-shadow: 0 6px 18px rgba(0,0,0,.28); z-index: 99999; }
.ui-tooltip-content { color: inherit; }

/* Produkta krāsu apļi (krāsu varianti) ir tikai 3D skatā; 2D skatā foto paliek oriģinālajā krāsā */
body:not(.admin):not(.view-3d) .tl-swatches{display:none !important;}
/* ...izņemot 2D produktu (nav 3D modeļa): tur krāsu apļi ir 2D skatā (klase no environment.js createColorSwatches) */
body.has-2d-variants:not(.admin):not(.view-3d) .tl-swatches{display:flex !important;}
.design-side.flat-field{overflow:hidden !important;}

/* Pasūtījuma priekšskatījums (admin -> Pasūtījumi -> Skatīt; design/main.js setupOrderPreview): tikai skatuve (3D / 2D pārslēgs, griešana, tuvināšana).
   Klase html.order-preview-early tiek uzlikta lapas SĀKUMĀ (templates/3d/design.htm.inc), tāpēc arī ielādes skelets ir bez paneļa; parastajam rīkam nekas nemainās. */
html.tool-layout-studio.order-preview-early{--st-rail:0px;--st-panel:0px;--st-left:0px;}
html.order-preview-early .st-rail,
html.order-preview-early .st-steps,
html.order-preview-early .st-ctx,
html.order-preview-early .st-toggle,
html.order-preview-early .design-objects,
html.order-preview-early .navigation-content.navigation-worksheet-tools,
html.order-preview-early .sp-theme-fab,
html.order-preview-early .undo,
html.order-preview-early .redo,
html.order-preview-early .reset,
html.order-preview-early .tl-swatches,
html.order-preview-early .design-loading-rail,
html.order-preview-early .design-loading-panel{display:none !important;}
/* skatuve aizņem visu platumu (modern / classic rezervē vietu labajam panelim) */
html.order-preview-early .design-side,
html.order-preview-early .design-side #three,
html.order-preview-early .header-wrap.header-wrap-worksheet{width:100% !important;max-width:none !important;flex:1 1 100% !important;}
/* 2D skats tikai skatīšanai: audekls nereaģē uz peli / pieskārieniem (nevar atlasīt, vilkt, mērogot) */
html.order-preview-early .canvas-container,
html.order-preview-early .canvas-container canvas{pointer-events:none !important;}
/* pogas stūros: "Print areas" augšā pa kreisi, 3D / 2D augšā pa labi */
html.order-preview-early #pa-guides-tool{top:14px !important;left:14px !important;right:auto !important;}
html.order-preview-early .tool-3d-btn{top:14px !important;right:14px !important;left:auto !important;}

/* Pasūtījumu saraksts (datorā): kolonnas ar noteiktiem platumiem, viss (virsraksti un saturs) līdzināts pa kreisi; "Download" kolonnā saites vienā virs otras.
   Horizontāls ritinājums tikai šaurā logā (kad kolonnas vairs netilptu), platā logā tā nav. */
@media (min-width:769px){
    .admin .add-product-container .designs-list.orders-list .row{display:grid;grid-template-columns:var(--ol-cols, minmax(120px,1.6fr) minmax(90px,.9fr) minmax(100px,1.1fr) minmax(100px,.9fr) minmax(92px,.8fr) minmax(84px,.8fr) minmax(104px,.9fr) minmax(104px,.9fr));align-items:center;column-gap:6px;padding-left:10px;padding-right:10px;box-sizing:border-box;}
    /* attēla kolonna datorā nav vajadzīga (telefonā paliek) */
    .admin .add-product-container .designs-list.orders-list .row > .col-image,
    .admin .add-product-container .designs-list.orders-list .row.heading > div:first-child{display:none;}
    .admin .add-product-container .designs-list.orders-list .row > .ol-hide{display:none !important;}
    /* saraksta teksts parastā svarā (kita standarts, sk. .designs-list .row); numurs <b> arī parasts */
    .admin .add-product-container .designs-list.orders-list .row:not(.heading){font-weight:400;}
    .admin .add-product-container .designs-list.orders-list .row:not(.heading) .col-name,
    .admin .add-product-container .designs-list.orders-list .row .col-name b{font-weight:400;}
    .admin .add-product-container .designs-list.orders-list .row > div{flex:none;min-width:0;padding:10px 4px;align-items:flex-start;justify-content:center;text-align:left;overflow-wrap:anywhere;}
    .admin .add-product-container .designs-list.orders-list .row.heading > div{overflow-wrap:normal;word-break:normal;}
    .admin .add-product-container .designs-list.orders-list .admin-order-files{gap:6px;}
    .admin .add-product-container .designs-list.orders-list .admin-order-files .admin-order-dl-main{font-weight:600;}
    /* iekšējais div (pogu grupa) mantoja .row div { padding:10px } - tāpēc pogas bija nobīdītas no kolonnas kreisās malas */
    .admin .add-product-container .designs-list.orders-list .row .admin-order-actions{align-items:flex-start;padding:0;}
}
@media (min-width:769px){
    .admin .add-product-container .designs-list.orders-list{overflow-x:auto;}
    /* flex bērns ar "min-width:auto" neļāva lapas saturam kļūt šaurākam par saraksta kolonnu summu - labā izvēlne tika izspiesta ārpus ekrāna */
    .admin .main-content.worksheet{min-width:0;}
}


/* Saraksta kolonnu virsraksti (visi .designs-list saraksti): 13 px, pelēki, parasts svars */
.admin .add-product-container .designs-list .row.heading > div{font-size:13px;font-weight:400;color:var(--ui-muted,#6D7175);}
.admin .add-product-container .designs-list .row .row-publish-item-label{font-weight:400;}

/* UI kit poga ar izvēlni pasūtījumu rindās: vispārīgais ".row div" (kolonna, padding 10px) tai nedrīkst piemēroties */
.admin .add-product-container .designs-list .row .ui-dropdown{flex-direction:row;flex:none;padding:0;}
.admin .add-product-container .designs-list .row .ui-menu{flex:none;flex-direction:column;padding:6px;}

/* Pasūtījuma grupa: viena rinda ar "+", pozīcijas (dizaini) atveras zem tās ar slīdēšanu */
.admin .designs-list.orders-list .row.ol-group{cursor:pointer;}
.admin .designs-list.orders-list .row.ol-group:hover{background:#F4F6F8;}
.admin .designs-list.orders-list .ol-line{display:flex;align-items:center;gap:8px;}
.admin .designs-list.orders-list .ol-toggle{display:inline-flex;align-items:center;justify-content:center;flex:none;width:22px;height:22px;padding:0;border:1px solid #C3CBD5;border-radius:6px;background:#fff;color:#4B5B73;font-family:inherit;font-size:15px;font-weight:600;line-height:1;cursor:pointer;}
.admin .designs-list.orders-list .row.ol-group.is-open .ol-toggle{background:#F0F2F4;}
.admin .designs-list.orders-list .ol-count{color:#6D7175;font-weight:400;}
.admin .designs-list.orders-list .ol-children{display:grid;grid-template-rows:0fr;transition:grid-template-rows .25s ease;}
.admin .designs-list.orders-list .ol-children.open{grid-template-rows:1fr;}
.admin .designs-list.orders-list .ol-inner{overflow:hidden;min-height:0;}
.admin .add-product-container .designs-list.orders-list .ol-inner .row{background:transparent;border:0;border-top:1px solid #EEF0F3;border-radius:0;}
.admin .add-product-container .designs-list.orders-list .ol-inner .row .col-name{padding-left:38px;}
@media (min-width:769px){ .admin .designs-list.orders-list .ol-blank{visibility:hidden;} }
@media (max-width:768px){ .admin .designs-list.orders-list .ol-blank{display:none !important;} }

/* Piesaistes līnijas 2D skatā (design/functions.js setupSnapGuides): centra līnija - spilgti, malu - vājāk */
.snap-guide{position:absolute;z-index:20;pointer-events:none;background:var(--brand-accent, #0B7AC2);opacity:.8;}
.snap-guide-v{width:2px;}
.snap-guide-h{height:2px;}
/* centra un malu līnijas izskatās vienādi (agrāk centrs bija necaurspīdīgs ar baltu apvalku un izskatījās citādi) */
.snap-guide.is-center{opacity:.8;}


/* Transform sadaļa (attēla un teksta slānis): kompakta - 1. rinda leņķis + 0/45/90/180, 2. rinda Flip H / Flip V / Reset; rīka paša stils (klienta rīkā kits nav ielādēts) */
.layer-transform{display:flex;flex-direction:column;gap:8px;padding:4px 0 2px;}
.layer-transform-rot{display:flex;align-items:center;gap:8px;flex-wrap:nowrap;}
.layer-transform-label{font-size:12px;color:#5D6877;flex:none;}
.layer-transform-input{position:relative;flex:none;}
.layer-transform-input input.ui-input{width:78px;padding-right:34px;}
/* "deg" lauka IEKŠPUSĒ - skaidrs, ka grādus raksta šeit */
.layer-transform-input i{position:absolute;right:10px;top:50%;transform:translateY(-50%);font-style:normal;font-size:12px;color:#5D6877;pointer-events:none;}
.layer-rotate-presets{display:flex;gap:4px;min-width:0;}
.layer-transform-rot .layer-rotate-presets{flex:1 1 auto;}
/* pogas = css/ui-kit.css (.ui-btn); šeit tikai vienāds platums rindā */
.layer-rotate-presets .ui-btn{flex:1 1 0;min-width:0;padding:0 4px;}

/* Make colour transparent: krāsas paraugs, pipetes poga, tolerances slīdnis (rīka paša stils; sadaļa atveras ar slēdzi) */
.transparent-color-swatch{flex:none;width:30px;height:30px;border-radius:8px;border:1px solid #D6DBE2;background:#fff linear-gradient(45deg,#eee 25%,transparent 25%,transparent 75%,#eee 75%),linear-gradient(45deg,#eee 25%,transparent 25%,transparent 75%,#eee 75%);background-size:10px 10px;background-position:0 0,5px 5px;}
.layer-transparent-section .layer-rotate-presets{flex:1 1 auto;}
.layer-transparent-section .transparent-color-pick.is-picking{background:#15191E;color:#fff;border-color:#15191E;}
.layer-tc-range{flex:1 1 auto;min-width:0;accent-color:var(--brand-accent,#15191E);}
.layer-tc-value{flex:none;min-width:24px;text-align:right;font-size:12px;font-weight:600;color:#15191E;}
.layer-transparent-section .layer-transform-rot{flex-wrap:nowrap;}
.layer-tc-range{flex:1 1 90px;}

/* admina priekšskatījums (iframe, &admin_preview=1): bez klienta "Next" un soļu joslas (Product / Design / Review / Order) - admina darbība ir "Publicēt" lapas augšā */
html.admin-preview .design-next-step > .btn,
html.admin-preview .st-steps{display:none !important;}
/* teksta slāņa fonta saraksta apakšā bija redzams tukšs tehniskais lauks (F_FONT_FAMILY) - tas ir datu lauks, nevis ievade */
.customFontBox > input[type="text"]{display:none;}

/* viena apdrukas puse (vai 2D): pusju sīktēls ar "1 puse" nav vajadzīgs; admina priekšskatījumā (Next paslēpts) tukšā josla arī pazūd */
.side-thumbs.is-single{display:none !important;}
html.admin-preview .design-next-step.single-side.is-empty{display:none !important;}

/* 2D produkta krāsas (admin produkta lapa, mvc/controls/cls_catalog_control.php colours_2d_html) */
.admin-colours{flex:0 1 410px;box-sizing:border-box;margin:0;padding:16px;border:1px solid #E1E5EA;border-radius:16px;background:#fff;box-shadow:0 1px 2px rgba(20,30,50,.05);}   /* stāv blakus pušu kartītēm (.dropzone-container) */
.admin-colours-title{margin:0 0 6px;font-size:16px;font-weight:600;}
.admin-colours-hint{margin:0 0 12px;font-size:13px;line-height:1.45;color:#6b7686;}
.admin-colours-list{display:flex;flex-direction:column;gap:10px;margin:0 0 12px;}
.admin-colour-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap;}
.admin-colour-row .ui-color{flex:0 0 138px;}
.admin-colour-row .admin-colour-name{flex:1 1 100px;min-width:90px;}
.admin-colours-sub{margin:10px 0 8px;font-size:13px;font-weight:600;}
.admin-colours-sub span{font-weight:400;color:#6b7686;font-size:12px;margin-left:6px;}
.admin-colours-photo{margin:0 0 6px;}
.admin-colours-list{gap:14px;}
.admin-colour-photos{display:flex;flex-wrap:wrap;gap:8px 16px;margin:8px 0 0;}
.admin-colour-photo{display:flex;align-items:center;gap:8px;flex-wrap:wrap;}
.admin-colour-thumb{position:relative;display:inline-block;flex:none;border:1px solid #E1E5EA;border-radius:6px;background:#fff;overflow:hidden;}
.admin-colour-thumb img{display:block;width:100%;height:100%;object-fit:fill;}
.admin-colour-area{position:absolute;box-sizing:border-box;border:2px dashed #E5007A;box-shadow:0 0 0 1px rgba(255,255,255,.9);pointer-events:none;}
.admin-colour-preview{display:flex;gap:14px;align-items:flex-start;flex-wrap:wrap;margin:10px 0 0;padding:12px;border:1px solid #E1E5EA;border-radius:10px;background:#F7F9FB;}
.admin-colour-preview-t{display:flex;flex-direction:column;gap:6px;flex:1 1 180px;min-width:0;font-size:13px;line-height:1.4;color:#3D4A5C;}
.admin-colour-preview-t b{font-size:14px;color:#15191E;}
.admin-colour-preview-a{display:flex;gap:8px;margin-top:6px;flex-wrap:wrap;}
.admin-colour-photo-side{font-size:12px;color:#6b7686;}
@media (max-width:600px){.admin-colours{flex:1 1 100%;}}

/* Lapošana: tā pati, kas SENET konsolē (console/css/admin.css .pagination): strong = tekošā lappuse, a = pārējās, span = daudzpunkte */
.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; margin: 4px auto; }
.pagination[hidden] { display: none; }
.pagination a, .pagination span, .pagination strong { display: inline-block; min-width: 32px; padding: 5px 8px; border: 1px solid #dfe4ea; border-radius: 6px; background: #fff; text-align: center; font-size: 13px; color: #1d2733; text-decoration: none; }
.pagination a:hover { border-color: var(--brand-accent, #0B7AC2); text-decoration: none; }
.admin-int-list .pagination { margin: 16px auto 0; }
