.fly {
  width: 3px;
  height: 3px;
  background-color: red;
  position:absolute;
  z-index: 99999999999999
}

.lightrope {
  display: none; /* скрыта по умолчанию, JS покажет 20 дек - 15 янв */
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  position: absolute;
  z-index: 1;
  margin: -37px 0 0 0;
  padding: 0;
  pointer-events: none;
  width: 100%;
}
.lightrope li {
  position: relative;
  -webkit-animation-fill-mode: both;
          animation-fill-mode: both;
  -webkit-animation-iteration-count: infinite;
          animation-iteration-count: infinite;
  list-style: none;
  margin: 0;
  padding: 0;
  display: block;
  width: 12px;
  height: 28px;
  border-radius: 50%;
  margin: 20px;
  display: inline-block;
  background: #00f7a5;
  box-shadow: 0px 4.6666666667px 24px 3px #00f7a5;
  -webkit-animation-name: flash-1;
          animation-name: flash-1;
  -webkit-animation-duration: 2s;
          animation-duration: 2s;
}
.lightrope li:nth-child(2n+1) {
  background: aqua;
  box-shadow: 0px 4.6666666667px 24px 3px rgba(0, 255, 255, 0.5);
  -webkit-animation-name: flash-2;
          animation-name: flash-2;
  -webkit-animation-duration: 0.4s;
          animation-duration: 0.4s;
}
.lightrope li:nth-child(4n+2) {
  background: #f70094;
  box-shadow: 0px 4.6666666667px 24px 3px #f70094;
  -webkit-animation-name: flash-3;
          animation-name: flash-3;
  -webkit-animation-duration: 1.1s;
          animation-duration: 1.1s;
}
.lightrope li:nth-child(odd) {
  -webkit-animation-duration: 1.8s;
          animation-duration: 1.8s;
}
.lightrope li:nth-child(3n+1) {
  -webkit-animation-duration: 1.4s;
          animation-duration: 1.4s;
}
.lightrope li:before {
  content: "";
  position: absolute;
  background: #222;
  width: 10px;
  height: 9.3333333333px;
  border-radius: 3px;
  top: -4.6666666667px;
  left: 1px;
}
.lightrope li:after {
  content: "";
  top: -14px;
  left: 9px;
  position: absolute;
  width: 52px;
  height: 18.6666666667px;
  border-bottom: solid #222 2px;
  border-radius: 50%;
}
.lightrope li:last-child:after {
  content: none;
}
.lightrope li:first-child {
  margin-left: 0;
}

@-webkit-keyframes flash-1 {
  0%, 100% {
    background: #00f7a5;
    box-shadow: 0px 4.6666666667px 24px 3px #00f7a5;
  }
  50% {
    background: rgba(0, 247, 165, 0.4);
    box-shadow: 0px 4.6666666667px 24px 3px rgba(0, 247, 165, 0.2);
  }
}

@keyframes flash-1 {
  0%, 100% {
    background: #00f7a5;
    box-shadow: 0px 4.6666666667px 24px 3px #00f7a5;
  }
  50% {
    background: rgba(0, 247, 165, 0.4);
    box-shadow: 0px 4.6666666667px 24px 3px rgba(0, 247, 165, 0.2);
  }
}
@-webkit-keyframes flash-2 {
  0%, 100% {
    background: aqua;
    box-shadow: 0px 4.6666666667px 24px 3px aqua;
  }
  50% {
    background: rgba(0, 255, 255, 0.4);
    box-shadow: 0px 4.6666666667px 24px 3px rgba(0, 255, 255, 0.2);
  }
}
@keyframes flash-2 {
  0%, 100% {
    background: rgb(255, 225, 0);
    box-shadow: 0px 4.6666666667px 24px 3px rgb(255, 208, 0);
  }
  50% {
    background: rgba(0, 255, 255, 0.4);
    box-shadow: 0px 4.6666666667px 24px 3px rgba(225, 255, 0, 0.2);
  }
}
@-webkit-keyframes flash-3 {
  0%, 100% {
    background: #f70094;
    box-shadow: 0px 4.6666666667px 24px 3px #f70094;
  }
  50% {
    background: rgba(247, 0, 148, 0.4);
    box-shadow: 0px 4.6666666667px 24px 3px rgba(247, 0, 148, 0.2);
  }
}
@keyframes flash-3 {
  0%, 100% {
    background: #f70094;
    box-shadow: 0px 4.6666666667px 24px 3px #f70094;
  }
  50% {
    background: rgba(247, 0, 148, 0.4);
    box-shadow: 0px 4.6666666667px 24px 3px rgba(247, 0, 148, 0.2);
  }
}
@font-face {
  font-family: "rd1";
  src: url("fonts/rd1.ttf");
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: "isonorm";
  src: url("fonts/isonorm.otf");
  font-weight: normal;
  font-style: normal;
}

* {
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  line-height: normal;
}

#iconsSelector > span {
  /* background-color: #ccc !important; */
}


body {
  color: #242424 !important;
  padding-top: 20px;
  margin: 0;
  font-family: Nunito, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji",
    "Segoe UI Symbol", "Noto Color Emoji";
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: #858796;
  text-align: left;
  background-color: #fff;
  
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  outline: none;
}

div {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  outline: none;
}

ul {
  list-style-type: none !important;
}

#pageControls,
.slider,
.topButton {
  -webkit-user-select: none; /* Safari */
  -ms-user-select: none; /* IE 10 and IE 11 */
  user-select: none; /* Standard syntax */
}

#menu {
  display: inline-block;
  background-color: #ccc;
  width: 200px;
}

.formLabel {
  font-size: 1em;
  margin-bottom: 3px;
  margin-top: 16px;
}

.labelSettings {
  font-size: 1.4em;
  background-color: #8587963e;
  border-radius: 5px;
  padding: 5px 0 5px 70px;
}

.hidden {
  display: none
  
}
.modalTypes {
  /* background-color: #169b6b; */
  width: 100%;
  height: 131px;
  transition: height 0.15s ease-out;
  /* border: 1px solid black; */
}

div.type-selector {
  position: absolute;
  display: flex;  
  transform: scale(0.43);
  transform-origin:top left;

}

div.type-selector .module {
}

div.type-selector > div {
  margin-bottom: 10px;
}

div.type-selector > div:not(:last-child) {
  margin-right: 5px;
}


/* input.module-params {
    width : 50px;
} */

ul.colours-selector {
  user-select: none;
  padding: 0;
  margin-top: 13px;
}

textarea.device-number {
  height: 63px;
}

.labelSettings {
  margin-top: 10px;
  margin-bottom: 10px;
}

li.plusEl {
  float: right;
}

.draggable-source--is-dragging {
  opacity: 0.2;
}

.in-selection {
  background-image: linear-gradient(to bottom, #b2b2b2, #9d9d9d) !important;
}

#device-name {
  height: 100px;
}
/* .slider-handle */
.regular-slider-handle {
  background-image: linear-gradient(to bottom, #656565, #656565) !important;
  /* background-image: linear-gradient(to bottom, #8afa95, #78ca41) !important; */
}

.exact-slider-handle {
  /* background-image: linear-gradient(to bottom, #656565, #656565) !important; */
  background-image: linear-gradient(to bottom, #8afa95, #78ca41) !important;
}

.modal-body {
  position: relative;
  padding: 0 20px 15px 20px !important;
}

.nav-tabs .nav-item.show .nav-link,
.nav-tabs {
  font-size: 1.2em !important;
}

.topbar {
  height: 6em !important;
}

.addModuleButton {
  background-color: transparent !important;
  position: absolute;
  margin-left: -60px !important;
}

.cardDxf{
  cursor: pointer;
}
.cardDxf .card-img-top {
  padding:10px;
  height: 100px;
  background-color: #6f6f6f;
}

.addModuleButton button {
  width: 2.5rem !important;
  height: 2.5rem !important;
}

#dinRailWidthSelector {
  margin: 15px 0 -14px 83px;
  height: 100px;
  /* min-height: 44px;  */
  /* top: 0px; */
  /* position: relative; */
}

button.icon {
  font-weight: 900;
}

.transparent {
  opacity: 0.5;
}

.navbar {
  position: absolute !important;
  width: 100% !important;
}

#workArea {
  margin-top: 51px;
  padding-left: 55px;
}

.dinCountBtn {
  font-size: 20px !important;
  height: 20px;
  width: 20px;
  padding: 0 !important;
  line-height: 10px !important;
}

.modal {
  z-index: 1060;
}

.danger {
  /* top: 0;     */
  /* margin-left: auto; */
  /* margin-right: auto;     */
  /* left: 0; */
  /* right: 0; */
  background-image: url(../images.69/icons/tools/danger.svg);
  background-repeat: no-repeat;
  position: absolute;
  display: none;
  z-index: 100000;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  /* background-color: #78ca41; */
}

.dinCount {
  padding: 0 20px 0 20px;
}

/* .tooltip {
    opacity: 0.5 !important
} */

#modeSelector > div {
  /* border: 1px solid black; */
  text-align: center;
  margin-left: 20px;
  /* width: 50px  ;
    height: 50px; */
}
#modeSelector img {
  width: 65px;
}
.alert {
  display: none;
  width: 600px;
  min-height: 107px;
  position: fixed;
  z-index: 1000000;
  margin-left: -300px;
  text-align: center;
  left: 50%;
  top: 50%;
}

.modal-dialog {
  margin: 1.75rem auto !important;
  transform: none !important;
  left: auto !important;
}

#modalStickerSettings .modal-dialog {
  /* margin-left: -506px !important; */
}

.btn {
  display: inline-block;
  font-weight: 400 !important;
  color: #858796;
  text-align: center;
  vertical-align: middle !important;
  -webkit-user-select: none !important;
  -moz-user-select: none !important;
  -ms-user-select: none !important;
  user-select: none !important;
  background-color: transparent;
  border: 1px solid transparent;
  padding: 0.375rem 0.75rem;
  font-size: 1rem;
  line-height: 1.5;
  border-radius: 0.35rem;
  transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out,
    border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out !important;
  /* width: 20px;
    height: 20px; */
  /* padding: 0; */
  /* margin: 0; */
  /* font-size: 30px; */
  /* font-weight: 1000; */
}

.btn-success {
  color: #fff;
  background-color: #1cc88a;
  border-color: #1cc88a;
}

.btn-success:hover {
  color: #fff;
  background-color: #17a673;
  border-color: #169b6b;
}

.plus-button {
  border: 2px solid lightgrey;
  background-color: #ffffff;
  font-size: 16px;
  height: 2.5em;
  width: 2.5em;
  border-radius: 999px;
  position: relative;
  &:after,
  &:before {
    content: "";
    display: block;
    background-color: grey;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }

  &:before {
    height: 1em;
    width: 0.2em;
  }
  &:after {
    height: 0.2em;
    width: 1em;
  }
  font-size: 22px;
  outline: none;
}

.plus-button:hover {
  background-color: #f5f5f5;
  box-shadow: 0 !important;
}

.h5,
h5 {
  font-size: 1.25rem;
}

.h1,
.h2,
.h3,
.h4,
.h5,
.h6,
h1,
h2,
h3,
h4,
h5,
h6 {
  margin-bottom: 0.5rem;
  font-weight: 400;
  line-height: 1.2;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.btn-primary {
  color: #fff;
  background-color: #4e73df;
  border-color: #4e73df;
}

#pageControls {
  /* border: 1px solid black; */
  width: 100%;
  /* margin-left: 51px; */
  transition: top 1s;
  z-index: 1010;
  /* background-color: #fff; */
  margin-left: -55px;
  padding-left: 111px;
  white-space: nowrap;
  border-radius: 20px; 
}

#pageControls span {
  white-space: nowrap;  
}

#pageControlsHolder {
  height: 38px;
  
}

#pageControlsContent {
  display:flex;
  flex-direction: row;
  /* justify-content: center; */
  align-items: center;
  background-color:aliceblue;
  width: 1006px;
  border-radius: 20px;
}

#pageControlsContent div {
  display: flex;
  
}
.menuSeparator {
  background-color: #ccc;
  width:1.5px;
  height: 30px;
  border-radius: 2px;
  margin-left: 15px;
  margin-right: 15px;

}

#files {
  cursor: pointer;
  white-space: nowrap;
  /* border: 1px solid orange; */
  padding-left: 10px;
  /* width: 260px;   */
}
#files label {
  cursor: pointer;
}

#files img {
  opacity: 0.5;
  margin: 8px;
}
#files img:hover {
  opacity: 1;
}
#railsCountSelector {
  /* border: 1px solid red; */
  /* margin-left: 67px; */
}

span#scaleMainBox {
  padding-left: 332px;
}

.topButton {
  width: 120px;
  height: 6 0px;
  font-size: 0.9em;
}

.topButton img {
  height: 35px;
}

/* New badge for projects tab */
.tab-icon-container {
  position: relative;
  display: inline-block;
}

.new-badge {
  position: absolute;
  top: -5px;
  right: -15px;
  background-color: #ff4444;
  color: white;
  font-size: 10px;
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 10px;
  text-transform: uppercase;
  line-height: 1;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  animation: pulse-badge 2s infinite;
}

@keyframes pulse-badge {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

hr {
  padding: 0;
  margin: 5px;
  /* margin-bottom: 5px; */
}

#scale select {
  /* display: inline; */
  width: 72px !important;
  border: 0;
  cursor: pointer;
  font-size: 18px;
  padding-top: 6px;
  background-color:transparent;
  color: #000;
  opacity: 0.5;
  font-weight: 500;
  /* padding-top:5px; */
  
}
#scale select:hover {

  opacity: 1;
  
}

*:focus {
  outline: none;
}
a {
  -webkit-user-select: none; /* Safari */
  -ms-user-select: none; /* IE 10 and IE 11 */
  user-select: none; /* Standard syntax */
}

#inputFile {
  display: none;
}
.youtube,
.telegram,
.download,
.shirt, .social_print {
  text-align: center;
  position: absolute;
  top: 38px;
  left: 950px;
  width: 100px;
  z-index: 100;
  /* border: 1px solid red; */
}

.telegram {
  left: 1045px;
}
.download {
  left: 1140px;
}

.download a { position: relative; display: inline-block; }
.badge-new{
  position: absolute;
  top: -6px;
  right: -10px;
  background: #dc3545;
  color: #fff;
  border-radius: 10px;
  font-size: 10px;
  line-height: 1;
  padding: 3px 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,.2);
}
.shirt {
  left: 1019px;
  top: 48px;
}

.social_print {
  left: 1017px;
  top: 38px;
}

.embed-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  max-width: 100%;
}
.embed-container iframe,
.embed-container object,
.embed-container embed {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.logo {
  position: fixed;
  top: 5px;
  /* width: 200px; */
  right: 5px;
  opacity: 0.9;
}

.noFlex {
  display: block !important;
  text-align: left !important;
}

.btn-success.disabled {
  background-color: #ccc !important;
}

.btn-success:not(:disabled):not(.disabled).active,
.btn-success:not(:disabled):not(.disabled):active,
.show > .btn-success.dropdown-toggle {
  color: #fff;
  background-color: #1cc88a !important;
  border-color: #1cc88a !important;
}

*[data-page] {
  display: none;
}

*[data-mode] {
  cursor: pointer;
}
a {
  text-decoration: none;
}
.generateExcel {
  margin-bottom: 30px;
}
.btn-close {
  margin-left: 310px;
  margin-top: 8px;
}

.tab-content {
  /* padding-left: 20px !important;
  padding-right: 20px !important; */
  min-height: 554px !important;
}

.portsCountSlider {
  margin-left: 6px;
  padding-top: 12px;
}

#moduleHeightSliderContainer {
  text-align: center;
}

table.specs {
  min-width: 180mm;
}

.paper {
  min-width: 200mm;
}

.btn-outline-danger {
  color: #fff;
  background-color: #e45b69;
  border-color: #e14959;
}
#boxName {
  width: 416px;
  display: inline;
  height: 31px;
  font-size: 20px;
  /* margin-left: 10px; */
}
.modWidthName {
  width: 370px;
  text-align: left;
}

@keyframes shake {
  0% { transform: translate(1px, 1px) rotate(0deg); }
  10% { transform: translate(-1px, -2px) rotate(-1deg); }
  20% { transform: translate(-3px, 0px) rotate(1deg); }
  30% { transform: translate(3px, 2px) rotate(0deg); }
  40% { transform: translate(1px, -1px) rotate(1deg); }
  50% { transform: translate(-1px, 2px) rotate(-1deg); }
  60% { transform: translate(-3px, 1px) rotate(0deg); }
  70% { transform: translate(3px, 1px) rotate(-1deg); }
  80% { transform: translate(-1px, -1px) rotate(1deg); }
  90% { transform: translate(1px, 2px) rotate(0deg); }
  100% { transform: translate(1px, -2px) rotate(-1deg); }
}

.shake {
  animation: shake 0.5s; 
  animation-iteration-count: 1; 
}

.loading {
  background-color: black;
  opacity: 0.5;
  position: absolute;
  width:3000px;
  height: 3000px;
  z-index:10000;
  display: none;
}

input#modWidth {
  width: 60px;
  text-align: left;
}

.downloadButton {
  width: 320px;
  height: 40px;
  margin-top: 4px;
}

#bottomAddDinRail {
  /* background-color: #17a673; */
  width: 100%;
  text-align: left;
  margin-left: 46px;
  margin-top: 18px;
  margin-bottom: 50px;
}

div[data-page]:not([data-page="box"]) {
  margin-left: 65px;
}

/* Project table text truncation styles */
.project-name-truncate {
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: inline-block;
  vertical-align: top;
}

.project-table-cell {
  max-width: 0;
  overflow: hidden;
}

.project-table-cell .project-name-truncate {
  max-width: 100%;
}

/* ---- Export progress overlay styles ---- */
#exportProgress {
  position: fixed;
  top: 12px;
  right: 12px;
  z-index: 5000;
  background: rgba(33,37,41,0.92);
  color: #fff;
  padding: 6px 14px 6px 12px;
  border-radius: 6px;
  font-size: 14px;
  line-height: 1.2;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
  backdrop-filter: blur(3px);
}

#exportProgress.d-none { display: none !important; }
#exportProgress .spinner-border { width: 1rem; height: 1rem; }

#exportProgress.showing { animation: fadeInExport 120ms ease-out; }
@keyframes fadeInExport { from { opacity:0; transform:translateY(-4px);} to { opacity:1; transform:translateY(0);} }

#exportProgress.success { background: rgba(25,135,84,0.95); }
#exportProgress.error { background: rgba(220,53,69,0.95); }

/* ---- Desktop download trigger minimization ---- */
.desktop-download-entry.animating { transition: top .4s ease, left .4s ease, right .4s ease, width .4s ease, height .4s ease, transform .4s ease, opacity .4s ease; }
.desktop-download-entry.fixed-start { position: fixed !important; }

.desktop-download-entry.minimized {
  position: fixed !important;
  top: 160px !important; /* moved further down */
  right: 0 !important;
  left: auto !important;
  transform: none !important;
  width: 56px !important;
  height: 64px !important;
  z-index: 5000;
  opacity: .98;
}

.desktop-download-entry.minimized a {
  width: 56px !important;
  height: 64px !important;
  border-radius: 0 0 0 12px !important; /* bookmark tab */
  padding: 6px 6px 10px !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 0 !important;
  background: #fff !important;
  border-color: #0d6efd !important;
  border-width: 2px !important;
  color: #0d6efd !important;
  box-shadow: 0 0 0 4px rgba(61,122,255,.08), 0 8px 22px rgba(13,110,253,.26) !important;
  transition: box-shadow .25s ease, transform .25s ease;
}

.desktop-download-entry.minimized a:hover {
  transform: translateZ(0) scale(1.06);
}

.desktop-download-entry.minimized #downloadOsText {
  display: none !important;
}

.desktop-download-entry.minimized #downloadOsIcon {
  display: block !important;
  width: 28px !important;
  height: 28px !important;
  margin: 0 !important;
  object-fit: contain !important;
}

/* Avatar / user thumb bookmark style (if present inside entry) */
.desktop-download-entry.minimized img.avatar, .desktop-download-entry.minimized .user-avatar {
  width: 40px !important;
  height: 40px !important;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0,0,0,.25);
  margin-bottom: 4px;
}

/* Toolbar icons as inline SVG sprite (replaces <img>; sprite injected into index.html) */
/* NOTE: toolbar anchors are column-flex containers (`#modeSelector > div > a`), so svgs need
   `flex: none`, otherwise flex-shrink crushes them to a few pixels. */
#modeSelector svg.toolIcon {
  width: 65px;
  height: 35px;
  display: inline-block;
  flex: none;
}

.topButton svg.toolIcon {
  height: 35px;
  width: 65px;
  display: inline-block;
  flex: none;
}

#files svg.toolIcon {
  opacity: 0.5;
  margin: 8px;
  vertical-align: middle;
  flex: none;
}

#files svg.toolIcon:hover {
  opacity: 1;
}

.youtube svg.toolIcon,
.telegram svg.toolIcon {
  width: 60px;
  height: 60px;
  display: inline-block;
  flex: none;
}

.download svg.toolIcon {
  width: 44px;
  height: 44px;
  display: inline-block;
  flex: none;
}
.color {
    font-family: rd1;
    min-height: 5mm;
    /* border-radius: 3px; */
    width: 100%;
    text-align: center;
    vertical-align: middle;
    font-size: 1em;
    padding-top: 2px;
    overflow: hidden;
    white-space: nowrap;
    background-color: #fff;
    /* outline: 1px solid gray; */
    outline-offset: -1px;
}

ul.schema li:not(:first-child){
    margin-left: 5px !important;
}

.colours-selector>.color {
    user-select: none;
    width: 10mm !important;
    height: 10mm !important;
    border-radius: 100mm;
    /* max-width: 17mm !important; */    
    margin: 0 0 4px;
    display: inline-block;
    z-index: 1000;
}

.colours-selector .selected {
    outline: 2px solid #5b5b5b !important;
}

.selected {
    outline: 0.5px solid #868686 ;
    border-radius: 2px;
}
.selected {
    outline: 2px solid #616161 ;
    border-radius: 2px;
}


.muted {
    opacity: 0.5;
    /* outline: 10px solid red; */
}

.muted:hover {
    opacity:1;
    /* outline: 10px solid red; */
}

.red, .red_bottom {
    background-color: #ff3737 !important;
}

.orange, .orange_bottom  {
    background-color: #ff8337 !important;

}

.brown, .brown_bottom  {
    background-color: #c29867 !important;

}

.yellow, .yellow_bottom  {
    background-color: #ffe272 !important;
}

.green, .green_bottom  {
    background-color: #9de16f !important;
}

.turquoise, .turquoise_bottom  {
    background-color: #36d8b7 !important;  
}


.blue, .blue_bottom  {
    background-color: #00a8f0 !important;

}

.purple, .purple_bottom  {
    background-color: #de6fff !important;
}

.pink, .pink_bottom  {
    background-color: #ff74bc !important;
}

.grey, .grey_bottom  {
    background-color: #d0d5da !important;
}

.black, .black_bottom  {
    background-color: #222831 !important;
    color: #f2f2f2 !important;
}

.black input, .black_bottom  input{
    color: #f2f2f2 !important;
}

.white, .white_bottom  {
    background-color: #fff !important;
    box-sizing: border-box;
    border: 1px solid gray;
}

.grounding, .grounding_bottom  {
    background-color: rgb(255, 255, 88) !important;
    background: linear-gradient(to bottom, transparent 40%, rgb(0, 194, 0) 40%, rgb(0, 194, 0) 60%, transparent 60%);
    /* transform: translateY(-50%); */
}
.whiteFont {
    color:white; 
    mix-blend-mode: difference;
}
#iconsSelector {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(30px, 1fr));
  grid-gap: 1px;
}

#iconsSelector span {
  width: 30px;
  height: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #fff;
  border: 2.5px dotted #fff;
  border-radius: 3px;
}

#iconsSelector span img {
  max-width: 90%;
  max-height: 90%;
  opacity: 0.6;
}

#iconsSelector span.selectedIcon img {
  opacity: 1;
}

#iconsSelector span.selectedIcon {
  border: 2px solid black !important;
  background-color: rgb(192, 250, 191) !important;
}

span.icon {
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100%;
  background-color: #ccc;
  width: 30px;
  height: 30px;
  display: inline-block;
  padding: 0;
  margin: 0;
}

.icon.big img {
  padding: 3px;
}

.icon.small {
  width: 24px;
  height: 24px;
}

#iconsWizardModal {
  display: none;
  z-index: 10000;
  width: 100%;
  height: 500px;
  background-color: #ccc;
  position: absolute;
  top: 0;
  opacity: 0.95;
}

.icon-selector .icon:hover {
  cursor: pointer;
}

.bi-eye { background-image: url(../images.69/misc/eye.svg) !important; }
.bi-eye-slash { background-image: url(../images.69/misc/eye-slash.svg) !important; }
.module {

  /* flex-direction: column; */
  position: relative;
  /* display: flex; 
  flex-direction: column-reverse;
  justify-content: flex-end;  */
}

.device {
  display: flex;
  align-items: center;
  
}

/* .din .device{
     height: 82mm; 
} */

.railNumber {
  position: absolute;
  margin-left: -20px;
  margin-top: 15px;
  font-size: 0.8em;
  color: rgb(192, 192, 192);
  /* background-color: aquamarine; */
}

.space {
  box-sizing: border-box;
  background: repeating-linear-gradient(
    135deg,
    #e5e5e5,
    #e5e5e5 10px,
    #fff 10px,
    #fff 20px
  );
}

.dinHandle:hover {
  outline: 2px solid #3245;
  border-radius: 100%;
}

.dinHandle,
.dinSettings {
  width: 25px;
  position: absolute;
  /* left: 100%;   */
  cursor: pointer;
  text-align: center;
  color: #878787;
  vertical-align: middle;
  font-size: 1.2em;
  height: 30px;
  background-color: #fff;
}

.dinSettings {
  /* left: calc(100% + 25px); */
  background-image: url(../images.69/icons/tools/settings.svg);
  background-repeat: no-repeat;
  background-size: 20px;
  background-position: center;
  opacity: 0.6;
}

.moreStickerSettings {
  /* left: calc(100% + 25px); */
  background-image: url(../images.69/icons/tools/settings.svg);
  background-repeat: no-repeat;
  background-size: 15px;
  background-position: left;
  padding-left: 20px;
  margin-top: 10px;
  /* opacity: 0.6; */
}

.din {
  outline: none !important;
  text-align: left;
  margin: 0;
  padding: 0;
  height: 117mm;
  display: flex;
  background-image: url(../images.69/devices/rail.svg);
  background-repeat: repeat-x;
  background-size: 20mm;
  border-radius: 10px;
}


.stickersOnTop .din {
  background-position-y: 174% !important;
}


.dinRemoving {
  outline: 3px solid #ff3737 !important;
}

.dinAdding {
  outline: 3px solid #9de16f !important;
}

.dinDevices {
  outline: none !important;
  text-align: left;
  margin: 0;
  padding: 0;
  display: flex;
  opacity: 0.999;
  min-width: 100mm;
  border-bottom: 1px dotted #ccc;
  border-top: 1px dotted #ccc;
  cursor: pointer;
}
/* 
.draggable {
  background-color: yellow;
} */

#schemaContainer .dinDevices {
  border-bottom: 1px solid transparent !important;
  border-top: 1px solid transparent !important;
}

.dinDevices:hover {
  /* cursor: pointer; */
}

#printBox .dinDevices {
  background-image: none !important;
}

.selectedModule {
  opacity: 1;
  /* outline: 2px solid rgb(195 233 24) !important; */
  filter: drop-shadow(0 0 5px rgb(70, 70, 70));
  /* border-radius: 4px !important; */
  /* background-color: #d0d5da; */
}

.din .module {
  outline: none;
  user-select: none;
  /* background-color: #9de16f;
  outline: 2px solid red */
}
.din .device {
  position: relative;
  /* background-color: #ff3737; */
  /* outline: 1px solid blue; */
}
.modalTypes .device {
  cursor: pointer;
}
#box .din .module:hover {
  cursor: pointer;
}

.stickersOnTop .din .device {
  /* position: absolute; */
  bottom: 0;
  /* outline: 3px solid red; */
}

.stickersOnTop .din .module {
 /* flex§ */
}


#box .din .device {
  cursor: pointer;
  filter: drop-shadow(0 0);
  z-index: 100;
  /* opacity: 0.2; */
  /* background-color: bisque; */
  /* height: 400px; */
  /* bottom: 0; */
}


#box .din .device:hover, #box .bus:hover, #box .connector:hover, #box .input:hover {
  cursor: pointer;
  filter: drop-shadow(0 0 2px rgb(70, 70, 70));
  z-index: 100;
  
}
#box {
  margin: 0 0 0 64px;
  display: inline-block;
  position: relative;
  background-color: #f5f4f4;
  -webkit-user-select: none; /* Safari */
  -ms-user-select: none; /* IE 10 and IE 11 */
  user-select: none; /* Standard syntax */
  border: 0;
  outline: 0;
border-right: 1px solid black;
border-left: 1px solid black;  
}

#tmpBox{
  display: none;
}

.deviceId {
  position: absolute;
  background-color: rgb(255, 238, 51);
  box-shadow: 0 1px 3px 0 rgba(0,0,0,.5);
  height: 6mm;
  min-height: 6mm;
  width: 12mm;
  min-width: 6mm;
  border-radius: 2px;  
  font-family: 'PT Sans Narrow', 'Roboto Condensed', Nunito, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  padding-left: 3px;
  text-align: center;
  vertical-align: middle;
  font-size: 0.75em;
  letter-spacing: -0.05em;
  line-height: 1;
  overflow: hidden;
  white-space: nowrap;

  top: 50%; 
  left: 50%; 
  transform: translate(-50%, -50%);

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

  /* Use system UI stack for compact, simple Cyrillic-capable rendering */
}

.connectrDetails input{
  width: 41px !important;
  height: 30px !important;
  border: 1px solid #ccc; 
  font-family: 'Courier New', Courier, monospace !important;
  font-size: 16px;
  display: block; margin: auto;
  text-align: center;
}
.connectrDetails  {
  font-size: 10px;
  color: #ccc;
  text-align: center;
}

.connectrDetails img {
  display: block; margin: auto;
  cursor: pointer;
  /* color:red; */
}

.connectrDetails span {
  display: inline-block; margin: auto;
  cursor: pointer;
  /* color:red; */
}

#modalConnectors .modalTypes {
  height: 50px; 
}

#phaseCount .form-check, #phaseColor .form-check, #phaseText .form-check {
  display: inline-block;
  margin-right: 10px;
}

.form-check{
  
  /* padding: 10px; */
}

.form-check:hover{
  border-radius: 10px;
  cursor: pointer;
  outline: 2px dotted rgb(112, 112, 112);
  outline-offset: 3px;
}

.printRowIds .deviceId {
  position: inherit !important;
  box-shadow: 0 0 0 0;
    border: 1px solid #ccc;
    border-radius: 1px;  
    transform: translate(0%, 0%);
}
.sticker {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    font-family: rd1; 
    font-size: 1.05em;
    padding: 3px 3px; 
    top: 86.8mm;
    text-align: center;
    background-color: #fff;
    max-height: 75mm; 
    transform-origin:top left; 
    background-color: #fff !important;
    border-left: 0.1px dotted rgb(209, 209, 209);
    /* border-top: 0.1px dotted rgb(209, 209, 209); */
}

path {
    /* stroke: red !important; */
  }

.stickersOnTop .din .sticker {
    /* position: absolute; */
    /* top: 0; */
}

.paper .parentOfDevice:last-child > .sticker{
    border-right:0.1px dotted rgb(209, 209, 209);
}

.printRow:first-child{
    border-top: 0.1px dotted rgb(209, 209, 209);
}
.printRow {
    border-bottom: 0.1px dotted rgb(209, 209, 209);
}

.din .sticker {
    border: 0;
    outline: 0.1px dotted rgb(209, 209, 209);
}

.number {
    height: 5mm;
    border-radius: 1mm;
    width: 100%;
    text-align: center;
    vertical-align: middle;
    
}


.text {
    padding-top: 1px;
    width: 100%;
    /* Do not break mid-word: on 1-module stickers break-word stacked letters
       one-per-line and looked like "Текст вертикально" was enabled. */
    word-break: normal;
    overflow-wrap: normal;
    overflow: hidden;
    height: 34px;
    /* max-height: 41px; */
    /* background-color: #78ca41; */
    flex-grow: 1;
    justify-content: center;
    /* line-height: 18.5px ; */
    display: flex;
    /* align-items: center; */
}
.text.vertical {
    word-break: break-word;
    overflow-wrap: anywhere;
}

.iconSticker {
    /* background-color: antiquewhite; */
    padding: 4px;
    height: 32.5px;
    top: 0;
    flex-grow: 1;
    /* min-height: 20px; */
    overflow: hidden;
    display: flex;
    flex-wrap: nowrap;
    justify-content: center; /* Center the content horizontally */
    /* z-index: 100000000; */
}

.iconSticker img{
 min-height: 10px;
 max-width: 100%; /* Images will resize to fit the container's width */
 height: auto; /* Maintain aspect ratio */
 padding:0 1px 0 1px;
}

li .sticker {
    position:absolute !important;
}

.iconSticker img {
    height : 100%;
    /* width: 100%; */
    /* max-height: 50px; */
    
}
.slider.slider-horizontal .slider-track {
    height: 2px;
    width: 100%;
    margin-top: -4px;
    top: 50%;
    left: 0;
    box-shadow: none !important;
}
.slider-tick, .slider-handle  {
    -webkit-box-shadow: none !important;
    width: 14px;
    height: 14px;
}

.in-selection {
    background-image: linear-gradient(to bottom, #cacaca, #cacaca) !important;
}

.slider-track {
    background-color: #b7b7b7;
    background-image: -moz-linear-gradient(top, #b7b7b7, #b7b7b7);
    
    background-image: -o-linear-gradient(top, #b7b7b7, #b7b7b7);
    background-image: linear-gradient(to bottom, #b7b7b7, #b7b7b7);
    background-repeat: repeat-x;
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#e0e0e0', endColorstr='#e0e0e0',GradientType=0);
}

.slider {
    font-size: 0.8rem;
}

.slider-tick.round {
    border-radius: 50%;
    border: 2px solid rgb(36, 36, 36);
    top:-5px;
}

.slider-selection {
    background: #101010 !important;
    box-shadow: none !important;
    box-shadow: none !important;
}

.exact-slider-handle {
    
    background-image: linear-gradient(to bottom, #51ff62, #51ff62) !important;
    border: 2px solid black;
}

.portsCountSlider .slider-tick:first-child {
    background-image: linear-gradient(to bottom, #edebeb, #edebeb) !important;
    border: 2px solid rgb(255, 255, 255) !important;
}
.slider.slider-horizontal {
    width: 100%;
    height: 10px;
  }
  .slider-handle {
    background: none;
    background-color: var(--bs-primary);
    top: -5px;
    -webkit-box-shadow: 0 0.125rem 0.25rem 0 rgba(39, 39, 39, 0.2);
    box-shadow: 0 0.125rem 0.25rem 0 rgba(39, 39, 39, 0.2);
  }
  .slider-selection {
    background: none;
    background-color: var(--bs-gray-500);
  }
  .slider-track {
    background: none;
    background-color: var(--bs-gray-300);
  }
  .slider .tooltip {
    position: absolute;
    opacity: 0;
  }
  .slider .tooltip.show {
    opacity: 0.9;
  }
  .slider .tooltip .arrow {
    position: absolute;
    display: block;
    width: 0.8rem;
    height: 0.4rem;
  }
  .slider .tooltip .arrow::before {
    position: absolute;
    content: "";
    border-color: transparent;
    border-style: solid;
  }
  .slider .bs-tooltip-top,
  .slider .bs-tooltip-auto[x-placement^=top] {
    padding: 0.4rem 0;
  }
  .slider .bs-tooltip-top .arrow,
  .slider .bs-tooltip-auto[x-placement^=top] .arrow {
    bottom: 0;
  }
  .slider .bs-tooltip-top .arrow::before,
  .slider .bs-tooltip-auto[x-placement^=top] .arrow::before {
    top: 0;
    border-width: 0.4rem 0.4rem 0;
    border-top-color: #000;
  }
  .slider .bs-tooltip-right,
  .slider .bs-tooltip-auto[x-placement^=right] {
    padding: 0 0.4rem;
  }
  .slider .bs-tooltip-right .arrow,
  .slider .bs-tooltip-auto[x-placement^=right] .arrow {
    left: 0;
    width: 0.4rem;
    height: 0.8rem;
  }
  .slider .bs-tooltip-right .arrow::before,
  .slider .bs-tooltip-auto[x-placement^=right] .arrow::before {
    right: 0;
    border-width: 0.4rem 0.4rem 0.4rem 0;
    border-right-color: #000;
  }
  .slider .bs-tooltip-bottom,
  .slider .bs-tooltip-auto[x-placement^=bottom] {
    padding: 0.4rem 0;
  }
  .slider .bs-tooltip-bottom .arrow,
  .slider .bs-tooltip-auto[x-placement^=bottom] .arrow {
    top: 0;
  }
  .slider .bs-tooltip-bottom .arrow::before,
  .slider .bs-tooltip-auto[x-placement^=bottom] .arrow::before {
    bottom: 0;
    border-width: 0 0.4rem 0.4rem;
    border-bottom-color: #000;
  }
  .slider .bs-tooltip-left,
  .slider .bs-tooltip-auto[x-placement^=left] {
    padding: 0 0.4rem;
  }
  .slider .bs-tooltip-left .arrow,
  .slider .bs-tooltip-auto[x-placement^=left] .arrow {
    right: 0;
    width: 0.4rem;
    height: 0.8rem;
  }
  .slider .bs-tooltip-left .arrow::before,
  .slider .bs-tooltip-auto[x-placement^=left] .arrow::before {
    left: 0;
    border-width: 0.4rem 0 0.4rem 0.4rem;
    border-left-color: #000;
  }
.draw2d_HybridPort {
    border: 10px solid red !important;
    background-color: red !important;
    outline: none !important;

}

.schemaConnection,
.schemaConnection path {
    stroke-dasharray: none;
    pointer-events: visibleStroke;
    stroke-linecap: round;
    transition: stroke-width 50ms ease, filter 50ms ease, opacity 15ms ease;
}

.schemaConnection:hover,
.schemaConnection.is-context-active,
.schemaConnection:hover path,
.schemaConnection.is-context-active path {
    stroke-width: 10px !important;
    opacity: 1;
    filter:
        drop-shadow(0 0 4px rgba(255, 255, 255, 0.9))
        drop-shadow(0 0 2px rgba(8, 0, 255, 0.85));
        /* drop-shadow(0 0 20px rgba(255, 0, 0, 0.6)); */
    cursor: pointer;
}

.deleteConnection {
  color: red;
}

.context-menu-item .color {
  height:2mm;
  padding-right:20px;
}
.groundingConnection {
    stroke: rgb(0, 150, 33);
    /* stroke-width: 10px !important; */
    /* color: rgb(255, 255, 0); */
    /* stroke-dasharray: 20, 15;  */
}

#colors {
    margin: 50px 0 0 10px;
}

#toolbar { 
    margin-left: 10px !important;
}

#colors ul{
    margin: 0;
    padding: 0;
}

#schemaContainer {
    top: 0;
    left: 0;
    /* background-color: thistle; */
    position: relative;
    z-index: 1;
    
}

button.generatePdfSchema {
  margin-bottom:10px;
}


#printBox {
  /* display: flex; */
  position:absolute;
  left: 0;
  top: 0;
  margin: 0;
  padding: 80px 150px 80px 150px;
  /* right: calc(0%);
  left: calc(0%); */
  /* background-color: aqua;    */
  transform-origin: left top;
  z-index: -1;
}

#canvas {   
    /* background-color: yellow; */
    top: 0;
    position: absolute;
    z-index: 100;
    /* width: 1000px;
    height: 1000px; */
    /* min-height:  1000px;
    min-width:  2000px; */
    /* width: 90%;
    height: 90%;  */
    /* background-color: red; */
    /* margin-top: 99px !important; */
    /* border: 1px solid red; */
}
/* 
#schemaBox{
    transform-origin: left top;
transform: scale(0.5);
} */

#settings-collapse {
  margin-bottom: 15px;
}

#portContextMenu {
  width:155px;
}

.lds-spinner {
    color: official;
    display: inline-block;
    position: relative;
    width: 80px;
    height: 80px;
  }
  .lds-spinner div {
    transform-origin: 40px 40px;
    animation: lds-spinner 1.2s linear infinite;
  }
  .lds-spinner div:after {
    content: " ";
    display: block;
    position: absolute;
    top: 3px;
    left: 37px;
    width: 6px;
    height: 18px;
    border-radius: 20%;
    background: #fff;
  }
  .lds-spinner div:nth-child(1) {
    transform: rotate(0deg);
    animation-delay: -1.1s;
  }
  .lds-spinner div:nth-child(2) {
    transform: rotate(30deg);
    animation-delay: -1s;
  }
  .lds-spinner div:nth-child(3) {
    transform: rotate(60deg);
    animation-delay: -0.9s;
  }
  .lds-spinner div:nth-child(4) {
    transform: rotate(90deg);
    animation-delay: -0.8s;
  }
  .lds-spinner div:nth-child(5) {
    transform: rotate(120deg);
    animation-delay: -0.7s;
  }
  .lds-spinner div:nth-child(6) {
    transform: rotate(150deg);
    animation-delay: -0.6s;
  }
  .lds-spinner div:nth-child(7) {
    transform: rotate(180deg);
    animation-delay: -0.5s;
  }
  .lds-spinner div:nth-child(8) {
    transform: rotate(210deg);
    animation-delay: -0.4s;
  }
  .lds-spinner div:nth-child(9) {
    transform: rotate(240deg);
    animation-delay: -0.3s;
  }
  .lds-spinner div:nth-child(10) {
    transform: rotate(270deg);
    animation-delay: -0.2s;
  }
  .lds-spinner div:nth-child(11) {
    transform: rotate(300deg);
    animation-delay: -0.1s;
  }
  .lds-spinner div:nth-child(12) {
    transform: rotate(330deg);
    animation-delay: 0s;
  }
  @keyframes lds-spinner {
    0% {
      opacity: 1;
    }
    100% {
      opacity: 0;
    }
  }

div.schemaSettings {
  width: 400px;  
  text-align: left !important;
}

.schemaSettings .btn-link {
  margin-bottom: 6px;
}
.schemaRealativeBoxContainer {
  position: relative;
  /* background-color: tomato; */
  top: 0;
  left: 0;
  width:100%;
  height: 100%;
  /* padding-top: 150px;; */
}

#topLevelShema {
  margin-top:20px;
}

/* Remove grid background on schema page (override .paperCells from print.css) */
#topLevelShema.paperCells, 
#topLevelShema .paperCells, 
#topLevelShema .schemaPaper.paperCells {
  background-image: none !important;
  background: transparent !important;
}

/* Zoom badge */
#schemaZoomBadge {
  position:absolute;
  top:8px;
  right:8px;
  background:rgba(255,255,255,0.85);
  backdrop-filter: blur(4px);
  border:1px solid #d0d7de;
  box-shadow:0 2px 4px rgba(0,0,0,0.15);
  font-size:12px;
  font-weight:600;
  border-radius:20px;
  padding:4px 10px;
  cursor:pointer;
  display:flex;
  align-items:center;
  gap:4px;
  user-select:none;
  transition:background .2s,border-color .2s,box-shadow .2s;
  z-index:1200;
}
#schemaZoomBadge .zoomIcon {font-size:14px;line-height:1;}
#schemaZoomBadge:hover {background:#fff;}
#schemaZoomBadge.active {background:#0d6efd;color:#fff;border-color:#0d6efd;box-shadow:0 2px 6px rgba(13,110,253,.4);} 

/* Active schema zoom button */
.schemaZoomBtn.active {box-shadow:0 0 0 0.2rem rgba(13,110,253,.25);}
div.menu,
.context-menu-list {
  display: none;
  /* display: flex; */
  flex-direction: column;
  align-items: center;
  position: absolute;
  background-color: #fff !important;
  border: 0 !important;
  box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.3) !important;
  z-index: 1000000;
  overflow: auto;
  border-radius: 8px;
  width: 210px;
  padding: 10px;
  /* font-family: none !important; */
}
.context-menu-list {
  display: inline;
}

div.menu ul {
  padding: 0;
  margin: 0;
  width: 100%;
}
div.menu div {
  display: flex;
}

div.menu div.menuItems {
  width: 100%;
}

div.micro_color {
  display: flex;
  flex-wrap: wrap;
  /* background-color: aqua; */
  width: 150px;
  /* margin-left:15px; */
}

.micro_color span {
  margin: 2px;
  border: 1px solid #ccc;
  border-radius: 20px !important;
  min-width: 20px;
  min-height: 20px;
}

.micro_color span:hover {
  cursor: pointer;
  outline: 2px solid #d0d0d0 !important;
  border-radius: 20px !important;
}

.moduleText {
  width: 180px;
  margin-bottom: 5px;
}

div.menu div.moduleTextInputs {
  display: flex;
  flex-direction: column;
  padding-bottom: 10px;
}
.menu li.separator {
  height: 1px;
  margin: 0;
  padding: 0;
  background-color: rgb(240, 240, 240);
  margin-bottom: 15px;
}

.menu li,
.context-menu-list li {
  padding: 9px 0 9px 30px;
  cursor: pointer;
  display: flex;
  justify-content: left;
  background-size: 20px;
  background-repeat: no-repeat;
  border-radius: 5px;
  background-position: top 9px left 3px;
  background-color: #fff;
  /* font-family: rd1 !important; */
}

.context-menu-list li:hover {
  background-color: #fff;
}

.menu li.hov:hover,
.context-menu-list li.hov:hover {
  background-color: #ebebeb;
}

.context-menu-list li {
  width: 184px !important;
  /* background-color: aqua; */
}

.context-menu-item {
  margin: 4px 4px 4px 13px !important;
  font-size: 0.8rem;
  padding: 0 !important;
}

.context-menu-item .micro_color {
  margin-left: 20px;
  margin-bottom: 7px;
}

li.edit { background-image: url(../images.69/icons/tools/edit.svg) !important; }
li.delete { background-image: url(../images.69/icons/tools/delete.svg) !important; }
li.flip { background-image: url(../images.69/icons/tools/flip.svg) !important; }
li.clone { background-image: url(../images.69/icons/tools/clone.svg) !important; }
li.addSegment { background-image: url(../images.69/icons/tools/add_segment.svg) !important; background-size: 15px; }
li.removeSegment { background-image: url(../images.69/icons/tools/remove_segment.svg) !important; background-size: 15px; }

li.width {
  padding: 3px 0 3px 0;
}
li.width1 {
  font-size: 0.8em;
  padding-bottom: 8px;
}
li.width2 {
  font-size: 1em;
}
li.width3 {
  font-weight: bold !important;
  font-size: 1.5em;
  padding-top: 8px;
}

#deviceTypeMenu {  
  background-color: #f4f3f3;
  position: absolute;
  padding: 10px !important;
  left: -700px;
  display: flex;
  justify-content: space-between;
  margin: 0 auto;
  padding: 0;
  width: 500px;
  height: 200px;
  z-index: 999999;
  border-radius: 4px;
  cursor: pointer;
  z-index: -1;
  opacity: 0.1;
  transition: left 0.1s, opacity 0.2s; 
  box-shadow: 0rem 0rem 2rem rgba(0,0,0,1)!important;  
}

.deviceTypeMenuCard {
  background-color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 15px 15px 0 15px;
  box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);
  /* transition: 0.3s; */
  width: 24%;
  border-radius: 4px;    
}
.deviceTypeMenuCard:hover {
  outline: 2px solid #616161;
}

.deviceTypeMenuCard p {
  margin-top:auto;
  padding: 0;
  text-align: center;
  color: #0d6efd;
}

#settingsMenu .slider-tick-label-container {
  margin-left: 0 !important;
}

#settingsMenu .stickerSettings {  
  margin: 0px !important;
  
  display: flex;
  flex-wrap: wrap;
  /* padding: 20px 0 20px 20px; */
  background-color: #fff;
}

#settingsMenu {
  z-index: 1000000;
}
#portContextMenu {
  width: 200px;
}
#portContextMenu ul, #portContextMenu li {
  padding: 0;
  margin: 0;
  /* align: center; */
}
#portContextMenu ul {
  margin: 10px 0 0 0;
}

#portContextMenu li {
  padding: 8px;
  border-bottom: 1px solid #ccc;
  text-align: center !important;
}
#portContextMenu li:hover {
 background-color: #ebebeb;
}

/* Sticker submenu inside device context menu */
li.stickerMenuItem {
  background-image: url(../images.69/icons/tools/sticker.svg) !important;
  justify-content: space-between;
  padding-right: 10px;
}
li.stickerMenuItem::after {
  content: '▸';
  margin-left: auto;
  color: #999;
  font-size: 0.85em;
  line-height: 1;
}
li.stickerMenuItem.open,
li.stickerMenuItem.open:hover {
  background-color: #ebebeb;
}
li.stickerMenuItem.open::after {
  color: #0d6efd;
}

.stickerSubMenu {
  display: none;
  width: 232px;
  padding: 10px 12px 12px;
  align-items: stretch !important;
  flex-direction: column;
  gap: 0;
  overflow: visible;
}
/* Override global `div.menu div { display: flex }` (row) for nested sections */
.stickerSubMenu .stickerSubSection,
.stickerSubMenu .stickerSubFooter,
.stickerSubMenu .stickerSubLabel,
.stickerSubMenu .stickerToggles {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  box-sizing: border-box;
}
.stickerSubSection {
  margin: 0;
  padding: 10px 0;
  border-bottom: 1px solid #f0f0f0;
}
.stickerSubSection:first-child {
  padding-top: 2px;
}
.stickerSubLabel {
  font-size: 0.8em;
  color: #777;
  margin-bottom: 8px;
  line-height: 1.2;
}
.stickerSubMenu .micro_color {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  margin: 0;
}
.stickerSubMenu .micro_color span {
  margin: 2px;
}
.stickerSubMenu .micro_color span.selected {
  outline: 2px solid #333 !important;
  outline-offset: 1px;
}

.stickerAlignRow {
  display: flex !important;
  flex-direction: row !important;
  width: 100%;
  border: 1px solid #ddd;
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
}
.stickerAlignBtn {
  flex: 1;
  display: flex !important;
  align-items: center;
  justify-content: center;
  height: 32px;
  margin: 0;
  padding: 0;
  border: 0;
  border-right: 1px solid #ddd;
  background: #fff;
  color: #444;
  cursor: pointer;
  line-height: 1;
}
.stickerAlignBtn:last-child {
  border-right: 0;
}
.stickerAlignBtn:hover {
  background: #f3f3f3;
}
.stickerAlignBtn.active {
  background: #0d6efd;
  color: #fff;
}
.stickerAlignBtn.active:hover {
  background: #0b5ed7;
  color: #fff;
}

.stickerFontSection {
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between;
  gap: 10px;
}
.stickerFontSection .stickerSubLabel {
  margin-bottom: 0;
  flex: 1;
}
.stickerFontRow {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 0;
  border: 1px solid #ddd;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
}
.stickerFontBtn {
  width: 30px;
  height: 30px;
  margin: 0;
  padding: 0;
  border: 0;
  background: #fff;
  color: #444;
  font-size: 1.1em;
  line-height: 1;
  cursor: pointer;
}
.stickerFontBtn:hover {
  background: #f3f3f3;
}
.stickerFontValue {
  min-width: 32px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-weight: 600;
  font-size: 0.95em;
  border-left: 1px solid #ddd;
  border-right: 1px solid #ddd;
  background: #fafafa;
}

.stickerToggles {
  gap: 2px;
  padding-bottom: 8px;
}
.stickerSubCheck {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 8px;
  font-size: 0.88em;
  margin: 0;
  padding: 5px 2px;
  cursor: pointer;
  color: #333;
  border-radius: 4px;
  user-select: none;
}
.stickerSubCheck:hover {
  background: #f5f5f5;
}
.stickerSubCheck input {
  margin: 0;
  flex-shrink: 0;
  width: 15px;
  height: 15px;
  accent-color: #0d6efd;
}

.stickerSubFooter {
  padding-top: 10px;
  border-bottom: 0;
}
.stickerFullSettingsBtn {
  width: 100%;
  margin: 0;
  padding: 8px 10px;
  border: 0;
  border-radius: 6px;
  background: #0d6efd;
  color: #fff;
  font-size: 0.82em;
  line-height: 1.25;
  cursor: pointer;
  text-align: center;
}
.stickerFullSettingsBtn:hover {
  background: #0b5ed7;
}
.colorMarker {
   position:absolute;
    padding:0;
    margin: 0;
    min-width: 10px;
    max-width: 30px;
    overflow: hidden;
    height:17px;
    font-size: 12px;
    justify-content: center;
    align-items: center;
    border: 0.4px solid #848484;
    border-radius: 2px;
    color: #000;
    font-family: Arial, Helvetica, sans-serif;
    cursor: pointer;
    z-index: 1000;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    opacity: 1;
    text-align: center;
}
.colorMarker:hover {
    filter: drop-shadow(0 0 5px rgb(70, 70, 70));
}

.colorMarker.zero{
    background-color: rgb(23, 23, 23);
    color: #fff;
}

.colorMarker.one{
    background-color: rgb(101, 34, 0);
    color: #fff;
}
.colorMarker.two{
    background-color: rgb(164, 0, 0);
    color: #fff;
}
.colorMarker.three{
    background-color: orange;
    color: #000;
}
.colorMarker.four{
    background-color: rgb(255, 234, 0);
    color: #000;
}
.colorMarker.five{
    background-color: green;
    color: #fff;
}
.colorMarker.six{
    background-color: rgb(111, 140, 220);
    color: #000;
}
.colorMarker.seven{
    background-color: plum;
    color: #000;
}
.colorMarker.eight{
    background-color: gray;
    color: #fff;
}
.colorMarker.nine{
    background-color: white;
    color: #000;
}

.colorMarker.char{
    background-color: rgb(255, 234, 0);
    color: #000;
}
.measure {
    min-width:20px;
    opacity: 0.8;
    max-height: 15px;
    height: 15px;
    text-wrap: nowrap;
    overflow: hidden;
    line-height: 15px;
    background-color: aquamarine;
    position: absolute;
    font-size:0.55em;
    text-align: center;
    vertical-align: middle;
    z-index: 1000;
    cursor: pointer;
    border: 0;
    /* transition: width 0.2s ease-in-out; */
}

.measure:hover,  .measure:focus {
    outline: 2px solid black;
    border-radius: 5px;  
    font-size: 18px; 
    height: 20px;
    /* position: absolute; */
    min-width: 30px;
}
 .measure:focus {
 background-color: rgb(255, 242, 0);
}

.measureInput  {
    border: 0;
    margin: 0;
    padding: 0;
    background-color: rgb(202, 250, 44);
    width:100%;
    height:15px;
    text-align: center;
    outline: 2px solid black;
}
div.addBus {
    margin-left: 50px;
}

#topBus {
    background-color: antiquewhite;
    height: 100px;
}

.busPreview, .connectorPreview, .inputPreview{
    display: flex;
    justify-content: center;
    align-items: center;
}
.connectorPreview {
    margin-top:20px;
}

.inputPreview{
    padding-top:65px;
}
.busColors {
    display: flex;
    justify-content: center;
    align-items: center;
}

.busColors .color {
    margin: 10px;
}

.bus,  .connector, .input {
    position: relative;
    top: 0;
}
.inputColorSel {
    width: 20px !important;
    padding: 2px;
    display: inline-block;
    text-align: center;
    margin-right: 3px;
}

#inputSettings label{
    margin-right: 10px
}
.printRow, .printRowIds  {
    min-height: 5mm;
    /* border-bottom: 1px dotted rgb(189, 189, 189); */
    display: flex;
    /* background-color: aquamarine; */
}


.paper {
    background-color: transparent !important; 
    /* outline: 10px dotted #ccc; */
    /* outline-offset: -10px; */
    
    /* z-index:-10; */
    margin-top: 20px;
} 

.downloadPrintFileButton {
    padding:0 20px 15px 0 ;
    
}
.downloadPrintFileButton:hover {
    cursor: pointer;
    filter: drop-shadow(0 0 3px rgb(120, 120, 120));
}


.paper .sticker {
    margin-bottom: 0 !important;
    /* background-color: transparent !important; */
}

/* #printBox .sticker {
    margin-bottom: inherit !important;
} */



.scale07 {
    transform: scale(0.7);
    transform-origin: top left;
}

.paperCells {
    background-image: linear-gradient(90deg, rgba(00,0,0,.05) 1px, transparent 0),
    linear-gradient(rgba(00,0,0,0.05) 1px, transparent 0);
    background-size: 20px 20px;
}
.modal-print .modal-content {
    width: 222mm !important;
}
.paperSizeSelector , .paperOrientationSelector {
    margin-top: 10px;
    margin-bottom: 10px;
}

#paperParams a {
    opacity: 0.5;
}
#paperParams a.selected {
    opacity: 1;
    outline: 0px !important;
    text-decoration: underline;
}
textarea.specsParam {
    /* border: 1px solid #eee; */
    padding: 0;
    margin:0;
    background-color: transparent;
    border: 1px dotted #ccc;
    resize: none;
    /* margin: 0;
    padding: 0; */
}

.outside {
    position: relative;
  }
  
.outside::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    z-index: 10000000;
  }
  @keyframes blink {
    0% {
        opacity: 0.1;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        opacity: 0.1;
    }
}
.blinking {    
    animation: blink 0.6s infinite;
    cursor:progress !important;
}
.stickerSettings {
    /* min-width: 970px !important; */
    margin-bottom: 15px !important;
    /* text-align: center;  */
    display: flex;
    flex-wrap: wrap;
    padding: 40px;
    background-color: #e2e2e2;
}

div[data-page="settings"] {
    min-height: 800px;
    /* background-color: #e9e9e9; */
    /* background-color: #000; */
    width: 1067px;
    padding: 10px;
}
.stickerDescription {
    width : 490px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.stickerSettings div {
    white-space: nowrap;
}
.settingsText {
    display: block;
    margin-bottom: 20px;
}

.stickerSettings #stickerPreview div{
    white-space: normal;
}
#stickerPreview {
    display: flex;
}
#sliderStickerHeight {
    /* padding-left: 10px; */
}
#settingsStickersCheckboxes {
    padding-right: 15px;
}
#settingsMenu {
    input {
        margin-right: 10px;
    }
}
#fontsSelector {
    margin-left: -32px;
    margin-top:10px;
}

.font1  {
  font-family: rd1 !important; 
}
.font2  {
    font-family: 'Times New Roman', Times, serif;
    /* font-family: Georgia, 'Times New Roman', Times, serif !important */
}
.font3 {
    font-family: 'Courier New', Courier, monospace;
    /* font-weight: 500; */
}
.font4 {
    font-family: Arial, Helvetica, sans-serif
}
.firebase-controls {
    background: #f8f9fa !important;
    border: 1px solid #dee2e6 !important;
    border-radius: 8px !important;
    padding: 15px !important;
    margin: 15px 0 !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
    display: block !important;
    width: auto !important;
    z-index: 1000 !important;
    position: relative !important;
}

/* Projects Tabs Styling */
.projects-tabs-container {
    margin-top: 1rem;
}

.projects-tabs-container .nav-tabs {
    border-bottom: 2px solid #e9ecef;
    margin-bottom: 0;
}

.projects-tabs-container .nav-tabs .nav-link {
    border: none;
    border-bottom: 3px solid transparent;
    background: none;
    color: #6c757d;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
}

.projects-tabs-container .nav-tabs .nav-link:hover {
    color: #495057;
    background: #f8f9fa;
    border-bottom-color: #dee2e6;
}

.projects-tabs-container .nav-tabs .nav-link.active {
    color: #0d6efd;
    background: #fff;
    border-bottom-color: #0d6efd;
    font-weight: 600;
}

.projects-tabs-container .nav-tabs .nav-link .badge {
    font-size: 0.65em;
    font-weight: 500;
}

.projects-tabs-container .nav-tabs .nav-link.active .badge {
    background-color: #0d6efd !important;
}

.projects-tabs-container .tab-content {
    background: #fff;
    border: 1px solid #e9ecef;
    border-top: none;
    border-radius: 0 0 0.375rem 0.375rem;
    padding: 1.5rem;
    min-height: 300px;
}

/* Hide/show tabs dynamically */
.projects-tabs-container .nav-item.d-none {
    display: none !important;
}

.firebase-controls .btn-group {
    gap: 5px;
}

.firebase-controls .btn-sm {
    font-size: 12px;
    padding: 4px 12px;
}

.user-info {
    font-size: 11px;
    color: #6c757d;
    background: #e9ecef;
    padding: 2px 8px;
    border-radius: 12px;
    display: inline-block;
    margin-top: 8px;
}

.projects-list {
    max-height: 400px;
    overflow-y: auto;
}

.project-item {
    padding: 12px;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    margin-bottom: 8px;
    background: #fff;
}

.project-item:hover {
    background: #f8f9fa;
}

.project-item h6 {
    margin: 0 0 4px 0;
    font-size: 14px;
    font-weight: 600;
}

.project-item .text-muted {
    font-size: 12px;
    line-height: 1.3;
}

.project-actions {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.project-actions .btn {
    font-size: 11px;
    padding: 2px 8px;
}

.auth-form .form-control {
    margin-bottom: 10px;
}

.share-url-container {
    position: relative;
}

.share-url-container input {
    padding-right: 80px;
}

@media (max-width: 768px) {
    .firebase-controls {
        padding: 10px;
        margin: 10px 0;
    }
    
    .firebase-controls .btn-group {
        flex-direction: column;
        width: 100%;
    }
    
    .firebase-controls .btn {
        width: 100%;
        margin: 2px 0;
    }
    
    .project-actions {
        flex-direction: column;
    }
    
    .project-actions .btn {
        width: 100%;
    }
}

/* Success/Error messages */
.firebase-message {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    min-width: 300px;
    padding: 12px 20px;
    border-radius: 6px;
    font-size: 14px;
    animation: slideIn 0.3s ease;
}

.firebase-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.firebase-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Loading states */
.firebase-loading {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.firebase-loading::after {
    content: "";
    width: 12px;
    height: 12px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Firebase Banner Styles */
.firebase-banner {
    max-width: 600px;
    margin: 1rem auto;
    border-radius: 12px;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.06);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    animation: bannerSlideIn 0.4s ease-out;
}

.firebase-banner-testing {
    background: linear-gradient(135deg, #fff8e1 0%, #ffecb3 100%);
    color: #e65100;
}

.firebase-banner-testing::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #ff9800, #ffc107);
}

.firebase-banner-minimal {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: #495057;
}

.firebase-banner-minimal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #6c757d, #adb5bd);
}

.firebase-banner-welcome {
    background: linear-gradient(135deg, #fff8e1 0%, #ffecb3 100%);
    color: #e65100;
}

.firebase-banner-welcome::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #ff9800, #ffc107);
}

.firebase-banner-info {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    color: #0d47a1;
}

.firebase-banner-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #2196f3, #03a9f4);
}

.firebase-banner-login {
    background: linear-gradient(135deg, #e8f4fd 0%, #d1ecf1 100%);
    color: #0c5460;
    max-width: 800px;
    margin: 1rem auto;
}

.firebase-banner-login::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #17a2b8, #007bff);
}

.firebase-banner-login .firebase-banner-content {
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.firebase-banner-login .firebase-banner-text {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.4;
    flex: 1;
    min-width: 200px;
}

.firebase-banner-content {
    padding: 1.5rem;
    padding-top: 1.75rem;
    position: relative;
}

.firebase-banner-header {
    font-weight: 600;
    font-size: 1.15rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    line-height: 1.3;
}

.firebase-banner-text {
    margin-bottom: 1rem;
    line-height: 1.5;
    font-size: 0.95rem;
}

.firebase-banner-features {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.firebase-banner-features li {
    margin-bottom: 0.75rem;
    line-height: 1.5;
    font-size: 0.9rem;
}

.firebase-banner-warning {
    margin-bottom: 1rem;
    font-weight: 500;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    font-size: 0.9rem;
    line-height: 1.4;
}

.firebase-banner-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.firebase-banner-actions .btn {
    border-radius: 8px;
    font-weight: 500;
    padding: 0.5rem 1.25rem;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.firebase-banner-actions .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Special styling for the primary "Try" button */
.firebase-banner-actions .btn-warning {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 50%, #ffc107 100%);
    color: white;
    font-weight: 600;
    font-size: 1rem;
    padding: 0.75rem 2rem;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 4px 15px rgba(255, 107, 53, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.2) inset;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    border: 2px solid transparent;
    background-clip: padding-box;
}

.firebase-banner-actions .btn-warning::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.firebase-banner-actions .btn-warning:hover {
    background: linear-gradient(135deg, #ff5722 0%, #f57c00 50%, #ff9800 100%);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.5);
}

.firebase-banner-actions .btn-warning:hover::before {
    left: 100%;
}

.firebase-banner-actions .btn-warning:active {
    transform: translateY(-1px) scale(1.01);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.4);
}

/* Pulse animation for extra attention */
.firebase-banner-actions .btn-warning {
    animation: buttonPulse 3s ease-in-out infinite;
}

@keyframes buttonPulse {
    0%, 100% {
        box-shadow: 
            0 4px 15px rgba(255, 107, 53, 0.4),
            0 0 0 1px rgba(255, 255, 255, 0.2) inset;
    }
    50% {
        box-shadow: 
            0 4px 20px rgba(255, 107, 53, 0.6), 
            0 0 0 4px rgba(255, 107, 53, 0.1),
            0 0 0 1px rgba(255, 255, 255, 0.3) inset;
    }
}

/* Enhanced rocket icon */
.firebase-banner-actions .btn-warning .fas.fa-rocket {
    display: inline-block;
    animation: rocketBounce 2s ease-in-out infinite;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

@keyframes rocketBounce {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-2px) rotate(-2deg);
    }
    75% {
        transform: translateY(-1px) rotate(1deg);
    }
}

.firebase-banner-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.8);
    border: none;
    font-size: 1.1rem;
    line-height: 1;
    color: inherit;
    opacity: 0.7;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.2s ease;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.firebase-banner-close:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.95);
    transform: scale(1.05);
}

.firebase-banner-link {
    color: inherit;
    text-decoration: underline;
    font-weight: 500;
}

.firebase-banner-link:hover {
    color: inherit;
    text-decoration: none;
}

.firebase-banner-small {
    max-width: 450px;
}

.firebase-banner-small .firebase-banner-content {
    padding: 1rem;
    padding-top: 1.25rem;
    font-size: 0.875rem;
}

.firebase-banner-small .firebase-banner-close {
    top: 0.75rem;
    right: 0.75rem;
    font-size: 0.9rem;
    width: 28px;
    height: 28px;
    padding: 0.375rem;
}

/* Animations */
@keyframes bannerSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Hover effects */
.firebase-banner:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15), 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .firebase-banner {
        max-width: calc(100% - 2rem);
        margin: 1rem;
    }
    
    .firebase-banner-content {
        padding: 1rem;
        padding-top: 1.25rem;
    }
    
    .firebase-banner-header {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }
    
    .firebase-banner-text {
        font-size: 0.9rem;
        margin-bottom: 0.75rem;
    }
    
    .firebase-banner-features {
        padding-left: 1.25rem;
        margin: 0.75rem 0;
    }
    
    .firebase-banner-features li {
        font-size: 0.85rem;
        margin-bottom: 0.5rem;
    }
    
    .firebase-banner-warning {
        padding: 0.5rem;
        font-size: 0.85rem;
        margin-bottom: 0.75rem;
    }
    
    .firebase-banner-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
        margin-top: 1rem;
    }
    
    .firebase-banner-actions .btn {
        width: 100%;
    }
    
    .firebase-banner-actions .btn-warning {
        font-size: 0.95rem;
        padding: 0.875rem 1.5rem;
    }
    
    .firebase-banner-close {
        top: 0.75rem;
        right: 0.75rem;
        width: 28px;
        height: 28px;
        font-size: 0.9rem;
    }
    
    .firebase-banner-small {
        max-width: calc(100% - 1rem);
        margin: 0.75rem 0.5rem;
    }
    
    .firebase-banner-small .firebase-banner-content {
        padding: 0.75rem;
        padding-top: 1rem;
        font-size: 0.8rem;
    }
    
    .firebase-banner-login .firebase-banner-content {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        padding: 0.875rem 1rem;
        gap: 0.75rem;
    }
    
    .firebase-banner-login .firebase-banner-text {
        font-size: 0.9rem;
        min-width: auto;
    }
    
    .firebase-banner-login .btn {
        width: 100%;
        font-size: 0.9rem;
    }
}
