body, input, select {
  color: var(--pl-dark-gray);
  font: 14px "PT Sans", sans-serif;
}

nav {
  position: sticky; width: 100%; box-sizing: border-box; height: var(--nav-height); top: 0;
  user-select: none;
  z-index: 10;

  display: flex;
  flex-grow: 0;
  gap: 20px;

  background-color: var(--pl);
  color: var(--pl-dark-gray);
  padding: 6px 14px;
  font-family: "PT Sans", sans-serif;
  align-items: center;
  /*  background-image: url("x.svg"); */

  .global-navi span.head-item.msymbol {
    display: inline flow-root;
    padding:  8px 10px;
    font-size: 18px;
    background-color: white;
    border: 1px solid var(--pl-gray-olive);
    border-radius: 6px;
    margin-left: 2px;
    cursor: pointer;
    max-width: 18px; /* sellega on loadimise ajal ilusam */

    /* &.new-shp { color: var(--pl-bluish-green); } */
  }

  .search-nav {
    display: flex; flex-direction: row-reverse;
    flex-grow: 1;
  }

  menu {
    position: fixed; z-index: 11;
    overflow: hidden;
    font-family: "PT Sans";
    margin: 0; padding: 0; list-style-type: none;
    background-color: white;
    top: calc( var(--nav-height) - 9px); /* see on liiga seljas, aga hiire hover-i pärast jätsin nii -- transition-iga saab hoida vist ekraanil natuke või pane üks marginiga div alla */
    right: 12px;

    width: 220px;
    border: 1px solid var(--pl-gray-olive);
    /* transform: translate(calc(100vw - 200px - 12px), 35px); */
    border-radius: 6px;
    box-shadow: 6px 4px 4px var(--pl-eggshell);
    animation: fadeInOpacity ease .4s;

    .do { cursor: pointer; display: flex; gap: 12px; align-items: center; }
    .do:hover { color: var(--pl-dark-aqua); }
    li.do:hover { background-color: var(--pl-eggshell); }
    li { margin: 0; padding: 10px 0 10px 16px; border-bottom: 1px solid var(--pl-platinum); }
    .lang .do { margin-right: 0.3em; }
    .msymbol { font-size: 18px; font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 40; };
    .do .text { flex-grow: 1 }
    .do .more { color: var(--pl-quicksand); text-align: center; display: none; padding: 0 10px; }
    .do:hover .more { display: inline-block; }
    .do .more:hover { color: inherit; }
  }
  .open-menu     menu { display: none; }
  .open-menu:hover menu { display: inline flow-root; /* transition: all 1s ease 1s; opacity: 1; */ }
}
#curtain {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0; width: 100%; height: 100%;
  z-index: 10000;
  /* backdrop-filter: blur(1px) grayscale(40%); */

  backdrop-filter: blur(4px);
  background-color: #263E5080;
}
#curtainmat {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: .6;
  background-color: var(--pl-otter-brown);
  background-size: cover;
  background-position: center;
}
.curtaincontent {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10001;
  width: 100%;
  height: 100%;
}
.curtaincontent > div {
  background-color: white;
}

#is_dev {
  display: none;
  width: 150px;
  position: fixed;
  top:10px;
  left:-50px;
  right:auto;
  transform: rotate(315deg);
  border: 0 none;
  font-size: 24px;
  background: var(--pl-forest);
  color:#fff;
  padding:.25em;
  text-align:center;
  z-index:99999;
}
body.dev {
  #is_dev { display: block }
  #is_dev:hover { opacity: 0; }
}

.tooltip-wrap {
  display: inline-block;
  position: relative;
}

.tooltip-wrap:hover .tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(5px);
  transition: all .11s ease .1s;
  visibility: visible;
}

.tooltip {
  /* background: rgba(0, 0, 0, .8); */
  background: var(--pl-deep-sea);
  color: white;
  border-radius: 3px;
  /* border: 1px solid var(--pl-leaf); */
  /* box-shadow: 2px 2px 4px var(--pl-deep-sea); */

  bottom: -30px;
  font-size: 12px;
  left: 50%;
  opacity: 0;
  padding: 5px 10px;
  position: absolute;
  transform: translateX(-50%) translateY(0);
  transition: all .3s ease;
  user-select: none;
  visibility: hidden;
  white-space: nowrap;
  z-index: 9999;
  pointer-events: none; /* not sure */
}

/* tip is just to show helping text, no complicated timeouts initialized, visibility controlled throu css */
:has(> .tip):hover .tip, .tip.active {
  visibility: visible;
  opacity: 1;
  transform: translateY(4px);
  transition: /* kehtivad siis kui hiirega peale sõidad */
    opacity .19s ease-out,
    transform .19s ease,
    visibility 0s linear 0s; /* kohe nähtavaks */
}
.tip {
  position: fixed; display: block; user-select: none; pointer-events: none; z-index: 99999;
  font: 12px "PT Sans"; color: white; background: var(--pl-deep-sea);
  padding: 5px 10px; border-radius: 3px;
  white-space: nowrap;

  opacity: 1;
  visibility: hidden;
  transform: translateY(0) scale(1);
  transition: /* need kehtivad siis kui hiirega ära lähed */
    opacity .05s ease,
    transform .05s ease-in,
    visibility 0s linear .05s; /* peida delay-ga */
}

.tip.light {
  font-family: "PT Sans";
  font-size: 12px;
  line-height: 16px;
  background-color: white; color: #212121;
  box-shadow: 0px 1px 4px 0px #00000040;
  border-radius: 8px;
  padding: 16px;
}

/* tool-tip is box where you can do work, suitable for menus etc, visibility controlled through js */
.tool-tip {
  position: fixed; display: block; user-select: none; pointer-events: none; z-index: 99999;
  font: 12px "PT Sans"; color: white; background: var(--pl-deep-sea);
  padding: 5px 10px; border-radius: 3px;
  white-space: nowrap;

  opacity: 1;
  visibility: hidden;
  transform: translateY(0) scale(1);
  transition: /* need kehtivad siis kui hiirega ära lähed */
    opacity .05s ease,
    transform .05s ease-in,
    visibility 0s linear .05s; /* peida delay-ga */

  &.active {
    display: block;
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(4px);
    transition: /* kehtivad siis kui hiirega peale sõidad */
      opacity .19s ease-out,
      transform .19s ease,
      visibility 0s linear 0s; /* kohe nähtavaks */
  }
}

.easy-dialog {
  min-width: 200px;
  border: 1px solid var(--pl-brownish);
  border-radius: 6px;
  animation: fadeInOpacity ease .22s;
  .header {
    background-color: var(--pl-eggshell); padding: 6px 6px; display: flex;
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
    align-items: center;
    .msymbol { font-size: 19px; }
    .msymbol:hover { color: var(--pl-salmon-pink); }
    .title { flex-grow: 1; font-family: "PT Sans"; font-weight: 400; white-space: nowrap; }
  }
  .body {
    padding: 12px;
    display: flex; flex-direction: column; gap: 6px;
  }
  input[type=text] {
    outline: 0 none;
    border: 1px solid var(--pl-platinum);
    padding: 6px;
    width: 100%;
    box-sizing: border-box;
    border-radius: 4px;
  }
}

calendar-x {
  display: block;
  max-width: 900px;
  margin: 0 auto;

  .calendar-container { display: flex; justify-content: space-between; }
  .calendar { flex: 1; margin: 0 10px; }
  .calendar-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
  .calendar-header button { background: none; border: none; font-size: 1.5em; cursor: pointer; }
  .calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
  .calendar-day { padding: 10px; text-align: center; border: 1px solid #ccc; cursor: pointer; }
  .calendar-day.selected { background-color: #007bff; color: white; }
  .calendar-day.in-range { background-color: #e3f2fd; }
  .calendar-day.disabled { color: #ccc; cursor: not-allowed; }
}

.search { 
  border-radius: 6px;
  border: 1px solid var(--pl-aluminium);
  height: 36px;
  box-sizing: border-box;
  margin-right: 40px;
  width: 20em;
  outline: 0 none;
  padding-left: 14px;
  padding-right: 14px;
  font-family: Iter;
}

/********************/

.new-new { /* uus "Uus tellimus" nupp, korista hiljem ära kui navi on Maido dream-i järgi ära tehtud */
  --base-color: var(--pl-quicksand);
  background-color: var(--base-color);
  color:  white;
  font: 12px "PT Sans";
  font-weight: 700;
  display: flex;
  width: 117px;
  height: 26px;
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  gap: 8px;
  span  { display: flex; border-radius: 4px; background-color: white;height: 16px; width: 16px; align-items: center; justify-content: center; margin-top: -1px; }
  .msymbol { font-size: 15px; color: var(--base-color); font-weight: 700; }
}
