body {
  display: flex;
  flex-direction: column; /* Располагаем header, main, footer вертикально */
  height: 100vh;          /* Ровно 100% высоты видимого экрана */
  margin: 0;
  font-family: sans-serif;
  overflow: hidden;       /* Гарантия отсутствия общей прокрутки */
}

header {
  background: #E5E5E5;    /* Временный цвет для наглядности */
  color: white;
  padding: 10px;

}

main {
  display: flex;
  height: 100vh;
  margin: 0;
  font-family: sans-serif;
  overflow: hidden;
}

footer {
  background: #E5E5E5;    /* Временный цвет для наглядности */
  color: white;
  height: 20px;
 /* padding: 10px;*/
}

/* Левый div панель с деревом */
.sidebar {
  width: 260px;
  padding: 15px;
 /* background: #1e293b;*/
  background: #334155;
  color: #f1f5f9;
  border-right: 1px solid #334155;
  box-sizing: border-box;
  user-select: none;
  /* 2. Включаем автоматическую вертикальную прокрутку */
  overflow-y: auto;
}

/* Центральный div часть */
#drawflow {
  flex-grow: 1;
  background: #f8fafc;
  /* Исправлено: px на английском + добавлен стиль и цвет */
  border: 2px solid #cbd5e1;
}

/* Правый div */
.property {


  border: 2px solid #cbd5e1;
  width: 260px;           /* Задаем фиксированную ширину, чтобы блок не сжимался в 0 */
  height: 100%;           /* Растягиваем по всей высоте экрана */
  box-sizing: border-box; /* Чтобы рамка 2px не раздувала ширину блока */

  display: flex;
  flex-direction: column;
  gap: 12px;               /* Автоматический отступ между виджетами */
  padding: 20px;           /* Внутренние отступы от краев панели */
}




/* раскрывашки */
details {
	margin-bottom: 8px;
}

summary {
	cursor: pointer;
	padding: 6px 10px;
	font-weight: bold;
	background: #334155;
	border-radius: 4px;
	list-style: none; /* Убираем стандартную стрелочку если нужно */
}


summary::-webkit-details-marker { display: none; }
summary::before { content: "📁 "; }
details[open] > summary::before { content: "📂 "; }

/* Внутренние узлы (ветки) */
.tree-children { padding-left: 15px; margin-top: 5px; }

/* Кнопки самих нод в дереве */
.node-btn {
	background: #0f172a;
	border: 1px solid #475569;
	color: #cbd5e1;
	padding: 6px 10px;
	margin: 4px 0;
	border-radius: 4px;
	cursor: pointer;
	display: block;
	width: 100%;
	text-align: left;
	box-sizing: border-box;
}
.node-btn:hover { background: #3b82f6; color: white; }

 .container {
  position: relative !important;
}

.bar-zoom {
  position: absolute;
  bottom: 10px;
  right: 10px;
  display: flex;
  gap: 12px; /* <-- ДОБАВЬТЕ ЭТО: расстояние между лупами в пикселях */
  font-size: 24px;
  color: white;
  padding: 5px 10px;
  background: #555555;
  border-radius: 4px;
  border-right: 1px solid var(--border-color);
  z-index: 5;
}

.bar-zoom svg {
  cursor: pointer;
  padding-left: 10px;
}


.bar-zoom svg:nth-child(1){
  padding-left: 0px;
}


.btn-export {
color: white;
font-weight: bold;
border: 1px solid #0e5ba3;
background: #334155;;
padding: 5px 10px;
border-radius: 4px;
cursor: pointer;
text-align: center; /* Центрируем текст внутри кнопки */
}
.btn-clear {
color: white;
font-weight: bold;
border: 1px solid #96015b;
background: #e3195a;
padding: 5px 10px;
border-radius: 4px;
cursor: pointer;
text-align: center; /* Центрируем текст внутри кнопки */
}



#tree {
    font-family: sans-serif;
    font-size: 14px;
    user-select: none;
}

#tree ul {
    list-style-type: none;
    padding: 0 0 0 15px; /* Вспоминаем правило часов: только слева 20px, остальные 0 */
    margin: 4px 0;
}

#tree>ul {
    list-style-type: none;
    padding: 0 0 0 0px; /* Вспоминаем правило часов: только слева 20px, остальные 0 */
    margin: 4px 0;
}


#tree summary {
    cursor: pointer;
    padding: 4px 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    outline: none;
}
#tree summary:hover, .tree .file:hover {
    background-color: #475569;
    border-radius: 4px;
}
/* Иконка папки перед summary */
.tree summary::before {
    content: "📁";
}
/* Меняем иконку при открытии папки */
.tree details[open] > summary::before {
    content: "📂";
}
/* Стили для файлов */
#tree .file {
   /* margin: 2px 2px 2px 2px;*/
    padding: 2px 0px 2px 15px;
    cursor: pointer;
}
.tree .file::before {
    content: "📄";
    margin-right: 6px;
}
/* Прячем стандартный системный треугольник details */
.tree summary::-webkit-details-marker { display: none; }
.tree summary { list-style: none; }
