/*общее*/
:root {
    --sh-back:  #e6e1d9;
	--sh-color: #333;
	
	--sh-block: #fff;
	--sh-backx: #f9f7f5;
    --sh-button: #355893;
	--sh-border: #d4d4d4;
	
	--sh-backc: #1e1e1e;
	--sh-hover: #ded6cf;
	--sh-hoverx: #e1e1e1;
}

:root.dark {
    --sh-back: #30384e;
	--sh-color: #b4c5e1;
	
	--sh-block: #292b33;
	--sh-backx: #1f222d;
	--sh-button: #355893;
	--sh-border: #3f3f3f;
	--sh-hover: rgb(54 91 155 / 70%) !important;
	--sh-hoverx: rgb(255 255 255 / 7%) !important;
}


  
    * { box-sizing: border-box; }
    
    body {
      font-family: 'Segoe UI', sans-serif;
      margin: 0;
      padding: 20px;
      transition: background-color 0.3s, color 0.3s;
	  padding-top: 57px;
    }
    
    body {
    background: var(--sh-back);
    color: var(--sh-color);
	background-image: url('https://team-ep.ru/css/back.png');
    background-repeat: repeat; 
    background-size: auto;     
    background-attachment: fixed;
   }
	
    a {color:#1c9834!important;}
    .dark a {color:#85e57b!important;}
    

a {text-decoration: none;}
	
a:hover {text-decoration: underline;}


/*селектор лого*/
.dark .eplogo {
    content: url('https://team-ep.ru/file/logositen.png');
  }


.info-button {display:none!important;}
    
	.theme-toggle {
      padding: 6px 12px;
      background: var(--sh-button);
      color: white;
      border: none;
      border-radius: 6px;
      cursor: pointer;
      font-size: 12px;
	  position: fixed;
      right: 19px;
      top: 11px;
    }
	

	

	
		.header_header__Rdmtp {background: rgb(170 74 74)!important}


    h1 {
      text-align: center;
      color: inherit;
      margin: 0 0 10px 0;
    }
	
	h3 {margin: 0px;}
	
		button {
      color: #ffffff;
      background: var(--sh-button);
      border-radius: 7px;
      border: solid 0px;
    }
	
	
	
	.ep-body h2 {
	font-weight: 500;
    border-left: solid 6px var(--sh-button);
    font-size: 110%;
    background: linear-gradient(to right, var(--sh-hoverx) 1%, rgba(0, 0, 0, 0)) 100% 0% !important;
    border-radius: 5px;
    padding: 7px 9px 7px 9px;
	margin: 20px 0px 20px 0px;
}




.ep-hide {display: none;}  



/*только страницы шаблоны*/
#snippets textarea.editable {
  display: block;        
  visibility: visible;   
  resize: none;
  overflow: hidden;
  min-height: 100px;
  max-height: 300px;
  padding: 10px;
  font-size: 13px;
}


    .container {
      max-width: 1100px;
      margin: 0 auto;
      display: grid;
      grid-template-columns: 220px 1fr;
      gap: 20px;
    }
    

    

  
    #search {
      width: 100%;
      max-width: 600px;
      margin: 20px auto 20px;
      padding: 12px;
      border: 1px solid #ccc;
      border-radius: 6px;
      font-size: 16px;
      display: block;
      background: #fff;
      color: var(--sh-color);
    }
    
    #search, .tags input {
      background: var(--sh-backx);
	  border-radius: 6px;
	  text-align: center;
	  border: solid 1px var(--sh-border);
    }
    
    .tags-sidebar {
	  margin-top: 39px;
      background: var(--sh-block);
      border: 1px solid var(--sh-border);
      border-radius: 8px;
      padding: 15px;
      align-self: start;
      box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }
    



#snippets {
    border: 1px solid var(--sh-border);
    max-height: 800px;
    overflow-y: scroll;
    padding-right: 30px;
    margin-right: -30px;
    background: rgb(0 0 0 / 10%);
    border-radius: 5px;
}

    
    #add-snippet {
      top: 8px;
      width: 187px;
      height: 43px;
      padding: 0;
      background: var(--sh-button);
      color: white;
      border: none;
      border-radius: 6px;
      cursor: pointer;
      font-size: 16px;
      margin-bottom: 15px;
      display: flex;
      align-items: center;
      justify-content: center;
    }
    
    .tag-filter {
display: flex;
justify-content: space-between;
align-items: center;
      width: 100%;
      padding: 6px 8px;
      margin: 4px 0;
      background: var(--sh-back);
      color: var(--sh-color);
      border: 1px solid var(--sh-border);
      border-radius: 6px;
      cursor: pointer;
      font-size: 14px;
      text-align: center;
      transition: all 0.2s;
      font-weight: bold;
    }
    
    .tag-filter.active {
      background: #b53a3a;
      color: #ffffff;
      border-color: #8c4545;
    }
	
	.mpbutton {
	width: 26px;
	justify-content: center;
	display: flex;
    align-items: center;
    cursor: pointer;}
	
	
    
    .main-content {
	  z-index: 9;
      display: flex;
      flex-direction: column;
      gap: 15px;
    }
    
    .snippet {
      background: var(--sh-block);
      border: 1px solid var(--sh-border);
      border-radius: 8px;
      padding: 15px;
      box-shadow: 0 2px 5px rgba(0,0,0,0.1);
	  margin: 6px;		
    }
    
    
    .snippet-header {
      margin-bottom: 10px;
    }
    
    .snippet-title {
      width: 100%;
      font-size: 18px;
      font-weight: 600;
      padding: 6px 0;
      border: none;
      border-bottom: 1px dashed var(--border-color, #ccc);
      outline: none;
      color: inherit;
      background: transparent;
      cursor: default;
    }
    
    .snippet-title[contenteditable] {
	  border-image: linear-gradient(to right, var(--sh-button) 1%, rgba(0, 0, 0, 0)) 100% 0% !important;
	  border-left: none;
      border-right: none;
      border-bottom: solid 2px;
      border-top: none;
      cursor: text;
    }
	
    .code-container {
      position: relative;
      width: 100%;
    }
    
    .code-display {
      width: 100%;
      min-height: 120px;
      padding: 10px;
      border: 1px solid var(--sh-border);
      border-radius: 4px;
      font-family: monospace;
      background: var(--sh-backx);
      color: inherit;
      white-space: pre-wrap;
      word-wrap: break-word;
      cursor: text;
    }
    
    textarea.editable {
      width: 100%;
      height: 120px;
      font-family: monospace;
      padding: 10px;
      border: 1px solid #007cba;
      border-radius: 4px;
      resize: vertical;
      background: #f0f8ff;
      color: #333;
    }
    
    textarea.editable.dark {
      background: #2a2a2a;
      color: #e0e0e0;
      border-color: #007cba;
    }
    
    .tags {
      margin: 10px 0;
      display: flex;
      flex-wrap: wrap;
      gap: 5px;
    }
    
    .tag {
      background: var(--sh-back);
      color: var(--sh-color);
      padding: 4px 8px;
      border-radius: 12px;
      font-size: 14px;
      display: flex;
      align-items: center;
    }
    
    .tag button {
      margin-left: 5px;
      background: #f44336 !important;
      color: white;
      border: none;
      width: 20px;
      height: 20px;
      border-radius: 50%;
      font-size: 12px;
      cursor: pointer;
    }
    
    .controls {
      display: flex;
      gap: 10px;
      margin-top: 10px;
    }
    
    .controls button {
      padding: 6px 10px;
      border: none;
      border-radius: 4px;
      cursor: pointer;
    }
    
    .copy  { background: #b53a3a; }
    .edit  { background: var(--sh-button); }
    .save  { background: #ff9800; }
    
    .no-match {
      text-align: center;
      color: #666;
      font-style: italic;
      padding: 20px;
    }
    
    .no-match.dark {
      color: #aaa;
    }
	


/*уникальная фильтрация тегов*/
.snippet:has(.tag[title="del"]) {
  display: none !important;
}

button.tag-filter.del, button.tag-filter.дублируется-в-сборе, button.tag-filter.дублируется-введение-к-фк  {
  display: none !important;
}





.tag-filter.сбор, .tag-filter.регистраторы, .tag-filter.введение-к-фк, .tag-filter.одобрен {border-left: 4px solid #39dd54!important;
order:-3;
}


.tag-filter.править, .tag-filter.дубль, .tag-filter.временный, .tag-filter.одобрить {border-left: 4px solid #dd3939!important;
order:-2;
}


.tag-filter.достависта {border-left: 4px solid #ffc300!important;
order:3;
}

.tag-filter.сити {border-left: 4px solid #dd6539!important;
order:4;
}

.tag-filter.нет-в-тт, .tag-filter.no-tag {border-left: 4px solid #2e2d2d!important;
order:5;
}


.tag-filter.рег, .tag-filter.рег-пеший, .tag-filter.рег-мото, .tag-filter.рег-такси, .tag-filter.рег-грузовой, .tag-filter.рег-авто, .tag-filter.рег-межгород{border-left: 4px solid #726bce!important;
order:2;
}


#tags-list {
display: flex
;
flex-direction: column;}


	

	









/*меню верху*/
.ep-prof .dropdown-menu {
    margin: -2px 0px 0px -10px;
}

.ep-prof {
    align-items: center;
    cursor: auto;
    display: grid;
    height: var(--header-height);
    justify-content: center;
    left: 0;
    max-width: 100vw;
    position: fixed;
    right: 0;
    top: 20;
    z-index: 10;
}

.ep-prof .navbar {

    right: 10px;
    position: absolute;
    top: 10px;
}

.ep-prof .right-btn {
    background-color: var(--sh-block);
}



.ep-nav {
	border-bottom: solid 1px rgb(113 113 113 / 50%);
    align-items: center;
    background: var(--sh-block);
    cursor: auto;
    display: grid;
    height: var(--header-height);
    justify-content: center;
    left: 0;
    max-width: 100vw;
    position: fixed;
    right: 0;
    top: 0;
    z-index: 10;
    box-shadow: 0 2px 5px rgb(0 0 0 / 21%);
    grid-template-columns: 270px 64% 270px;
}

.right-btn {
    font-weight: 500;
    margin-left: 9px;
    padding: 8px 16px;
    color: inherit;
    border: none;
    border-radius: 0px;
    cursor: pointer;
    font-size: 13px;
    background-color: var(--sh-hoverx);
    border-radius:12px;
}

.right-btn:hover {
    background-color: var(--sh-hover);
}

.right-btn a { 
    padding: 8px 5px;

}









.navbar {
	  max-width: 1100px;
      margin: auto;
      padding: 0px 15px 0px 15px;
      display: flex;
      list-style: none;

      width: max-content;
      position: relative;
      z-index: 99;
    }

    .navbar > li {
		
      position: relative;
      display: inline-block;
      margin: 4px 21px 4px 21px;
      padding: 15px 0;
      border-bottom: 2px solid transparent;
      cursor: pointer;
      transition: all 0.3s ease;
      font-size: 14px;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.5px;
    }

    .navbar > li:hover {
      color: var(--sh-button);
    }

    .navbar > li::after {
      content: "▼";
      margin-left: 5px;
      font-size: 10px;
      opacity: 0.7;
    }



    /* Подменю */
    .dropdown-menu {
      display: none;
      position: absolute;
      top: 100%;
      left: 0;
      background-color: var(--sh-backx);
      min-width: 200px;
      box-shadow: 0 4px 8px rgba(0,0,0,0.2);
      border-radius: 0;
      z-index: 1000;
      border-top: 3px solid var(--sh-button);
	      margin: -2px 0px 0px -35px;
    }

    .dropdown-menu.show {
      display: block !important;
    }

    .dropdown-menu li {
	  list-style-type: none;
	  color: var(--sh-color);
      padding: 0;
      border-bottom: 1px solid var(--sh-border);
      cursor: pointer;
      transition: background-color 0.3s ease;
    }
	
	.dropdown-menu li:nth-child(2n) {
  background-color: rgb(0 0 0 / 3%); /* или любой другой цвет */
}

    .dropdown-menu li:hover {
      background-color: var(--sh-hover);
    }

    .dropdown-menu li:last-child {
      border-bottom: none;
    }

    .dropdown-menu li.active {
      background-color: #2a97e0;
      color: white;
    }
	
	

	
	
ul.dropdown-menu {
    padding-inline-start: 0px;
    
}


.dropdown-menu li a {
  padding: 10px 10px!important;
  display: block;
  width: 100%;
  height: 100%;
  color: var(--sh-color)!important;   
  text-decoration: none; 
}




.dropdown-menu.show{	
box-shadow: 0px 3px 3px 0px #2b394d;}



/*подподменю*/
.dropdown-menu .has-submenu {
  position: relative;
}

.dropdown-menu .submenu {
  display: none;
  position: absolute;
  left: 236px;
  top: 0;
  background: var(--sh-backx);
  min-width: 200px;
  z-index: 1000;
}

.dropdown-menu .submenu.show {
  display: block;
  border-top: 0px solid var(--sh-button);
}

.dropdown-menu .has-submenu {
    display: block;
    width: 100%;
    height: 100%;
    
    color: var(--sh-color) !important;
    text-decoration: none;
}


.has-submenu::after {
    content: "▶";
    font-size: 10px;
    opacity: 0.7;
    right: 8px;
    position: absolute;
    top: 13px;
}

.dropdown-menu img {    vertical-align: bottom;}








/*код заглавной*/
.ep-body
{   
    margin: 26px auto 36px;
    width: 900px;
    background: var(--sh-block);
    border: 1px solid var(--sh-border);
    border-radius: 8px;
    padding: 21px;}




	.ep-body li {
		padding-bottom: 5px;
		
	}


/*блоки копирования*/

/*базовый*/
   .ep-copy {
	white-space: break-spaces;
    display: inline-block;
    padding: 5px;
    background-color: var(--sh-back);
    border: 1px solid #767676;
    border-radius: 8px;
    cursor: pointer;
	font-size: 15px;
    user-select: none;
    margin: 2px;
    }
	
.ep-copy:hover {
      background-color: #ff76002b!important;
    }
.dark .ep-copy:hover {
      background-color: rgb(255 47 174 / 11%) !important;
    }	
	
	
	
	
/*для ответов*/	
.ep-c1 {
    background-color: var(--sh-backx)!important;
    border: 0px solid #767676!important;
	padding: 10px;
}

.ep-c2 {
    font-weight: bold;
    border: 1px solid #14d063;
}


	
	

    .ep-copy.copied {
      background-color: #0fff0036;
      border-color: #49c064;
    }



.ep-header {
	margin: 10px auto;
    position: relative;
    text-transform: uppercase;
    text-align: center;
    cursor: help;
    width: 400px;
	font-weight: bold;
	width: max-content;
	padding: 5px;
    border-radius: 5px;
}



.ep-header:hover:after {
    background-color: var(--sh-block);
    padding: 10px;
    margin: 28px 0px 2px 0px;
    position: absolute;
    left: 69px;
    font-size: 14px;
    border-radius: 8px;
    width: 220px;
    text-transform: none;
    border: solid 1px var(--sh-button);
	z-index: 11;
	font-weight: normal;
}


.ep-header.ep-h1:hover:after {
    content: "Здесь, размещены все контакты парка";
}
.ep-header.ep-h2:hover:after {
    content: "Здесь, размещены полезные материалы, которые можно использовать во время работы";
}
.ep-header.ep-h3:hover:after {
    content: "Здесь, находится архив парковых шаблонов РФ";
}
.ep-header.ep-h5:hover:after {
    content: "Здесь, размещены полезные материалы, которые можно использовать во время работы";
}
.ep-header.ep-h6:hover:after {
    content: "Здесь, можно размещать пользовательские шаблоны. Нажмите добавить шаблон, и отредактируйте пустой, а после сохраните.";
}















button:hover {background: var(--sh-hover)!important;
			color:black!important;}

.dark button:hover {background: var(--sh-hover)!important;
			color:#f8ad5a!important;}
			
			
			
			
			
			
			
			
			
			
/*скрипт копирования картинок png*/			
			
.epimage {
    width: auto;
    height: auto;
    border-radius: 5px;
    border: solid 2px var(--sh-border);
    margin: 9px;
    max-height: 200px;
    max-width: 200px;
    cursor: pointer;
}

.epimage:hover {
    opacity:0.8;
    border: solid 2px var(--sh-button)!important;
}


.epimage2 {
    position: absolute;
    display: inline-block;
    margin: 215px 10px 10px 10px;
    font-size: 12px;
}			
			
			
			
			
			
			
			
			
			
			
			
			
			
			
			
			






















/*mini page!*/
.doc-container {
    background-color: var(--sh-block);
    width: max-content;
    border: solid 1px var(--sh-border);
    border-radius: 5px;
    margin: auto;

}

.doc-container iframe {
    border: solid 0px var(--sh-border);
    clip-path: inset(130px 0 0 0);
    margin-top: -110px;
}


.mpmenu {
    margin: 10px auto;
    width: max-content;
    background: var(--sh-backx);
    border: solid 1px var(--sh-border);
    padding: 10px;
    border-radius: 5px;
    font-weight: 500;
}

.epblockm {
    max-width: 800px;
    margin: 10px auto;
    width: 100%;
    background: var(--sh-backx);
    border: solid 1px var(--sh-border);
    padding: 10px;
    border-radius: 5px;
    font-weight: 500;
    font-size: 14px;
    white-space: break-spaces;
}






/**tabs.js**/
.ep-tab-panel {
    margin: auto;
    text-align: center;
    display: flex;
	flex-wrap: wrap; 
    justify-content: center;
    margin-top: 37px;
    border-bottom: 2px solid var(--sh-border);
	align-items: flex-end;
	width: 900px;
}


.ep-tab-panel div {
	top: 1px;
    position: relative;
	font-weight: 700;
    font-family: 'Open Sans', Arial, sans-serif;
    background: var(--sh-block);
    cursor: pointer;
    border-radius: 9px 9px 0px 0px;
    margin: 11px 10px 0px 10px;
    padding: 7px 14px 7px 14px;
}

.ep-tab-panel > div {
  border-bottom: 2px solid var(--sh-border);
  padding-bottom: 4px; 
}

.ep-tab-panel div:hover {
	background: var(--sh-button);
	color: white;
	
}

.ep-tab-panel div.active {
    background: var(--sh-button);
    border-radius: 9px 9px 0px 0px;
    margin: 3px 10px 0px 10px;
    height: 42px;
    color: white;
}


.ep-tab-body {
    margin: 0px auto 10px;
    width: 1100px;
   
    border-radius: 8px;
    padding: 13px;
}









/*инфо страницы*/
.ep-text {
font-family: "Chiron GoRound TC", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
        padding: 10px 40px 10px 40px;
}


.ep-text li p {    margin: 0px;}
.ep-text p {    margin: 8px;}

.ep-text img {
    border: solid 2px var(--sh-border);
    border-radius: 6px;

    margin: 12px;
}




/**integra.js - скрипт содержание**/


.dynamic-toc {
  position: sticky;
  top: 67px;
  width: 250px;
  float: left;
  margin: 0 0 0em -14em;
  shape-outside: inset(0);
  z-index: 8;
  background: var(--sh-block);
  padding: 4px 4px 4px 20px;
  margin-bottom: 24px;
  border-left: 3px solid var(--sh-button);
  font-size: 80%;
}

.dynamic-toc h3 {
  margin-top: 0;
  margin-bottom: 12px;
}

.toc-list {
  padding-left: 0;
  margin-left: 8px;
}

.toc-list li {
  margin: 6px 0;
}

.toc-list a {
  text-decoration: none;
  color: #0056b3;
}

.toc-list a:hover {
  text-decoration: underline;
}

ul.toc-list {
       list-style-type: auto;
}












/*new copy*/
.ep-copyl {
    position: relative;
    margin: 12px;
    font-weight: bold;
    padding: 5px 12px 5px 12px;
    background-color: var(--sh-back);
    border-radius: 8px;
    cursor: pointer;
    user-select: none;
    text-align: left;
    border: 2px 2px 2px 2px;
    border-left: 6px solid;
    border-color: var(--sh-button);
    width: 210px;
    font-size: 14px;
    overflow: hidden;
    white-space: nowrap;
}

.ep-copyl:hover {background-color: #ff76002b}
.ep-copyl.copied {  background-color: #3dab576e;}


/*обуч материалы текст*/
.ep-text strong {
    border-bottom: solid 2px #00b457;
}

















/* Мобильная версия: до 768px */
@media (max-width: 768px) {
    
.header-right {
    display:none!important;
}

  
  /* Скрываем стрелки */
  .navbar > li::after {
    display: none;
  }

  /* Делаем меню блочным и в 2 колонки */
  .navbar {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 15px !important;
    margin: 0 auto 20px !important;
    background-color: var(--sh-block);
    border: 1px solid var(--sh-border);
    border-radius: 8px;
    box-shadow: 0px 3px 3px 0px #2b394d;

    /* Включаем 2 колонки */
    column-count: 2;
    column-gap: 15px;
  }

  /* Основные пункты — как заголовки */
  .navbar > li {
    position: static !important;
    display: block !important;
    margin: 0 !important;
    padding: 12px 15px !important;
    border-bottom: 1px solid var(--sh-border);
    font-weight: 700;
    color: var(--sh-color);
    background: transparent !important;
    break-inside: avoid; /* чтобы элемент не разрывался между колонками */
  }

  /* Подменю — встраиваем в поток */
  .dropdown-menu {
    display: block !important;
    position: static !important;
    box-shadow: none !important;
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    min-width: auto !important;
  }

  .dropdown-menu li {
    display: block !important;
    padding: 0 !important;
    border-bottom: 1px solid var(--sh-border) !important;
    background: transparent !important;
    break-inside: avoid;
  }

  .dropdown-menu li:nth-child(2n) {
    background-color: rgb(0 0 0 / 3%) !important;
  }
  
  .dropdown-menu li a {color:#389230!important;}  

  .dropdown-menu li:last-child {
    border-bottom: none !important;
  }

  .dropdown-menu a {
    display: block !important;
    padding: 12px 15px !important;
    color: var(--sh-color) !important;
    text-decoration: none !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    transition: all 0.3s ease !important;
  }

  .dropdown-menu a:hover {
    background-color: var(--sh-hover) !important;
    color: var(--sh-button) !important;
  }

  /* Убираем hover-эффекты и выпадашки */
  .navbar > li:hover,
  .navbar > li:hover .dropdown-menu {
    display: block !important;
  }
}
