/* ! =================================================================== Шаблон стилей (переменные и основные поля) =================================================================== */
:root {
  --color-bg-main: #ffffff;
  /* --color-bg-main: #ffffff; */
  --color-bg-2: #353535;
  --color-bg-blur: #ffffff0d;
  --main-color: #2559b6;
  /* --main-color: #67b4ff; */
  --main-color-hover: #0a4681;
  --main-color-pale: #b1b1b1;
  /* --color-pal: #ffcf25; */
  /* --color-kom: #33d6ff; */
  --main-text-color: #000000;
  --button-text-color: #ffffff;
  /* --main-text-color: #080808; */
  /* --color-border: #393c48; */
  --color-border: #b3b3b3;
  --color-error: #ff4269;
  --color-success: #12ff7b;
  --labelsize: 12px;
  --textsize: 14px;
  --texttitle: 20px
  --drop-down-list-color-text: #000;
}

* {
  box-sizing: border-box;
}

body {
  background-color: var(--color-bg-main);
  font-family: "Inter", "Segoe UI", "Roboto", "Arial", sans-serif;
  color: var(--main-text-color);
}

.input {
  border-radius: 5px;
  padding: 3px 8px;
  border: 1px solid var(--color-border);
  background-color: #00000000;
  color: var(--main-text-color);
  font-size: var(--textsize);
}

button,
.button {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--main-color);
  border: none;
  border-radius: 5px;
  cursor: pointer;
  color: var(--button-text-color);
  text-decoration: none;
  min-width: 10px;
  min-height: 27px;
  font-family: inherit;
  padding: 0 16px;
  box-sizing: border-box;
  transition: 0.2s;
  font-size: var(--textsize);
}

.button:hover,
button:hover {
  background-color: var(--main-color-hover);
}

.drop-down-list {
  background-image: url('data:image/svg+xml;utf8,<svg fill="white" width="18" height="10" viewBox="0 0 18 10" xmlns="http://www.w3.org/2000/svg"><path d="M2 2l7 6 7-6" stroke="black" stroke-width="2" fill="none" stroke-linecap="round" stroke-linejoin="round"/></svg>') !important;
  background-repeat: no-repeat !important;
  padding-right: 30px;
  background-position: right 8px center !important;
  background-size: 16px 10px !important;
  /* background-color: var(--main-color-pale); */
  /* background-color: var(--main-text-color); */
  background-color: var(--color-bg-main);
  color: var(--main-text-color);
  border: 1px solid var(--color-border);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding: 3px 24px 3px 8px;
  border-radius: 3px;
  position: relative;
  font: inherit;
  font-size: var(--textsize) !important;
}

option {
  background-color: var(--color-bg-main);
  color: var(--main-text-color);
  font-size: var(--textsize);
}

input[type="checkbox"] {
  accent-color: var(--main-color); /* Замените на нужный цвет фона и галочки */
  height: 20px;
}
/* ! === ===================================================================== Шапка (лого + меню + название формы) ======================================================================== */

.logo {
  width: 37px;
  height: 37px;
}

.header-row {
  padding-top: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.form-title {
  font-size: var(--texttitle);
  white-space: nowrap;
  font-weight: bold;
  margin-bottom: 25px;
}

.burger-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 60px;
  height: 60px;
  min-width: 60px;
  min-height: 60px;
  max-width: 60px;
  max-height: 60px;
  border-radius: 50%;
  color: var(--main-color);
  padding: 0;
  margin: 0 10px;
  cursor: pointer;
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.18);
}

.burger-line {
  width: 24px;
  height: 3px;
  background: #000;
  border-radius: 2px;
  margin: 3px 0;
}

/* ! ======================================================================== Шапка дашборд ======================================================================== */

.dashboard {
  display: flex;
  gap: 2em;
  margin-bottom: 1.5em;
  justify-content: center;
  align-items: center;
  margin-left: auto;
  margin-right: auto;
}

.dashboard-block {
  background: var(--color-bg-blur);
  border-radius: 16px;
  border: 1px solid var(--main-color);
  padding: 18px 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 110px;
  min-width: 120px;
  width: auto;
  flex: 0 1 auto;
  box-sizing: border-box;
  margin: 0;
}

.dashboard-block-signature {
  font-size: 12px;
  margin-bottom: 3px;
  min-width: 100px;
  word-break: break-word;
}

.dashboard-block-value {
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 400;
  line-height: 1;
  white-space: nowrap;
  text-align: center;
  margin: 0;
}

/* ! ======================================================================== Фильтра + поиск ======================================================================== */

.filters {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1em;
  height: 27px;
  gap: 1em;
  margin-left: 5px;
}

/* ! ======================================================================== Списки ======================================================================== */

.table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
  border: none !important;
  box-shadow: none !important;
}

.table th {
  font-weight: 600;
}

.table th,
.table td {
  padding: 10px 8px;
  text-align: left;
  border-bottom: 1px solid var(--main-color-pale) !important;
  font-size: var(--textsize);
}

th.label {
  font-size: var(--labelsize) !important;
}

.table tbody tr:hover {
  background-color: #5465fd1f;
  transition: background 0.15s;
}

/* ! ======================================================================== Карточка списка ======================================================================== */

.edit-form-block {
  max-width: 440px;
  margin: 24px auto;
  background: var(--color-bg-blur);
  border-radius: 13px;
  padding: 28px 28px 18px 28px;
  box-shadow: 0 6px 32px #1a8fff2f;
  display: flex;
  flex-direction: column;
  gap: 0.5em;
}

.edit-form-block .form-row {
  display: flex;
  flex-direction: column;
  gap: 0.25em;
  margin-bottom: 5px;
}

.edit-form-block .label {
  font-size: var(--labelsize);
  color: var(--main-color);
  font-weight: 500;
  margin-bottom: 3px;
  letter-spacing: 0.01em;
}

.label {
  font-size: var(--labelsize);
}

.edit-form-block .input,
.edit-form-block .drop-down-list,
.edit-form-block textarea {
  margin-bottom: 0;
  width: 100%;
  min-width: 0;
  background: var(--color-bg-main);
  color: var(--main-text-color);
  border: 1.2px solid var(--color-border);
  border-radius: 5px;
  font-size: var(--textsize);
  padding: 6px 10px;
  transition: border-color 0.14s;
}

.edit-form-block .input:focus,
.edit-form-block .drop-down-list:focus,
.edit-form-block textarea:focus {
  border-color: var(--main-color-hover);
}

.edit-form-block textarea,
.edit-task-textarea {
  min-height: 77px;
  resize: vertical;
  padding: 7px 10px;
  border-radius: 5px;
  font-size: 1em;
}

.date-time-row {
  display: flex;
  gap: 0.7em;
}
.date-time-row .input {
  width: auto;
  min-width: 0;
  flex: 1 1 0;
}

.edit-buttons-row {
  margin-top: 10px;
  display: flex;
  gap: 1.1em;
  justify-content: flex-end;
}

@media (max-width: 700px) {
  .edit-form-block {
    max-width: 99vw;
    padding: 12px 5vw 12px 5vw;
  }
}

/* ! ======================================================================== Меню ======================================================================== */

.layout {
  display: flex;
  min-height: 100vh;
}

.side-menu {
  width: 40px;
  background: var(--color-bg-blur, #f8faffcc);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 24px;
  box-shadow: 0 0 20px rgba(31, 38, 135, 0.08);
  z-index: 99;
  border-right: 3px solid #1681ea33;
  position: fixed; /* <--------- делаем меню фиксированным */
  left: 0;
  top: 0;
  min-height: 100vh; /* чтобы растягивалось на весь экран */
  height: 100vh; /* и не обрезалось из-за потока */
}

.main-content {
  flex: 1;
  padding: 32px 30px;
  box-sizing: border-box;
  display: block;
  margin-left: 40px; /* <---------- добавляем сдвиг на ширину меню */
}

.menu-items {
  display: flex;
  flex-direction: column;
  gap: 26px;
  margin-top: 300px;
  width: 100%;
  align-items: center;
}

.menu-item {
  width: 20px;
  height: 20px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--main-color, #008cff);
  font-size: 1.5rem;
  background: transparent;
  transition: background 0.15s;
  margin: 0 auto;
  text-decoration: none;
}

.menu-item:hover {
  background: var(--main-color, #008cff) 10;
  box-shadow: 0 2px 8px rgba(31, 38, 135, 0.12);
}

.chain {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 40px;
}

.person-node {
  min-width: 220px;
  background: var(--color-bg-blur);
  border: 1px solid var(--main-color);
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

.connector {
  width: 2px;
  height: 35px;
  background: var(--main-color);
}