
    body {
      font-family: 'Segoe UI', sans-serif;
      background-color: #f4f6f8;
      margin: 0;
    }
     .container {
      max-width: 1200px;
      margin: 0 auto;
      background-color: #fff;
      border-radius: 12px;
      box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
      padding: 20px;
    }
h1 {
  color: #8be014;
}
#paginationControls {
  margin-top: 10px;
}

#paginationControls button {
  max-width: 1200px;
  margin: 0 3px;
  padding: 4px 10px;
  border: 1px solid #aaa;
  background: white;
  cursor: pointer;
}

#paginationControls button.active {
  background-color: #007bff;
  color: rgb(246, 244, 244);
  font-weight: bold;
}
.sortable {
  cursor: pointer;
  user-select: none;
  position: relative;
  padding-right: 16px;
}

.sortable::after {
  content: "";
  position: absolute;
  right: 0;
  font-size: 0.8em;
  color: #888;
}

.sortable.sorted-asc::after {
  content: "▲";
}

.sortable.sorted-desc::after {
  content: "▼";
}
.search-bar {
  gap: 10px;
  align-items: center;
  margin-bottom: 15px;
  max-width: 400px;
  margin-left: 20px;
  margin-top: 10px;
}
.search-bar input {
  flex: 1;
  padding: 6px 10px;
  font-size: 14px;
  border-radius: 4px;
  border: 1px solid #ccc;
}

.search-bar button {
  padding: 6px 12px;
  font-size: 14px;
  cursor: pointer;
  border: none;
  border-radius: 4px;
  background-color: #007bff;
  color: white;
}

.search-bar button:last-child {
  background-color: #885d61;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: 14px;
}
.section {
  display: none;
}

.section.active {
  display: block;
}

a {
  color: #0056b3;
  text-decoration: none;
}
.tab, .client-tab {
  background: #e9eef2;
  padding: 8px 12px;
  margin-right: 6px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s;
}
.tab.active, .client-tab.active {
  background: #d0dbe4;
  font-weight: bold;
}

/* ✏️ Формы */
input[type="text"],
input[type="password"],
input[type="datetime-local"],
input[type="date"],
input[type="email"],
select,
textarea {
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 6px;
  width: 100%;
  box-sizing: border-box;
  background-color: white;
}

input:disabled,
select:disabled,
textarea:disabled {
  background-color: #f4f4f4;
  color: #999;
}

/* 🧷 Кнопки */
button {
  background-color: #4a90e2;
  color: white;
  padding: 6px 14px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s;
}

button:hover {
  background-color: #3c7dc9;
}
tr:hover {
      background-color: #f1f1f1;
    }


button:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}
.filters {
      margin-top: 20px;
      display: flex;
      gap: 10px;
      justify-content: center;
    }

    .filters select, .filters input {
      padding: 6px 10px;
      border: 1px solid #ccc;
      border-radius: 6px;
      font-size: 14px;
    }
.btn {
      background-color: #4a90e2;
      color: white;
      border: none;
      border-radius: 6px;
      padding: 8px 12px;
      font-size: 14px;
      cursor: pointer;
      transition: background 0.2s;
    }

    .btn:hover {
      background-color: #357ab8;
    }

/* 🔘 Кнопки-иконки */
.icon-btn {
  background: none;
  border: none;
  color: #343333;
  cursor: pointer;
  font-size: 16px;
}

/* 📦 Модальные окна */
.modal {
  background-color: rgba(0, 0, 0, 0.4);
  position: fixed;
  z-index: 1000;
  left: 0; top: 0;
  width: 100%; height: 100%;
  display: none;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: white;
  border-radius: 10px;
  padding: 20px;
  width: 95%;
  max-width: 600px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

/* 🟦 Панель сверху */
#currentUserInfo {
  font-weight: bold;
  padding: 10px;
  margin-bottom: 10px;
  background: #4e3737;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  display: inline-block;
}
    .login-screen {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      height: 100vh;
      background: #f0f0f0;
    }
    .login-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    }
    .login-screen input {
    width: 260px;
  height: 42px;               /* ✅ одинаковая высота */
  padding: 8px 12px;
  font-size: 16px;
  margin: 8px 0;
  border-radius: 5px;
  box-sizing: border-box;
  border: 1px solid #ccc;
    }
    .login-screen button {
      padding: 10px 20px;
      font-size: 16px;
      background: #4CAF50;
      color: white;
      border: none;
      cursor: pointer;
      border-radius: 4px;
    }
    #app { display: none; }
    #managers td input[type="text"], #managers td input[type="password"] {
      width: 100%;
      box-sizing: border-box;
    }
    header {
      background-color: #38373f;
      color: white;
      padding: 20px 20px;
    }
    h1 {
      margin: 0;
    }
    .amount-col {
    width: 95px;          /* ширина колонки — подкорректируй по желанию */
    white-space: nowrap;   /* не переносить текст */
    overflow: hidden;      /* скрыть лишнее */
    text-overflow: ellipsis; /* при обрезании добавить "..." */
    }
    .tab {
      display: inline-block;
      padding: 10px 20px;
      background: #e0e0e0;
      margin-right: 5px;
      cursor: pointer;
    }
    .tab.active {
      background: white;
      font-weight: bold;
      border-bottom: 2px solid #333;
    }
   .section {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  padding: 20px;
  margin-bottom: 20px;
}
    .section.active {
      display: block;
    }
    .fio {
        width: 150px;
    }
    .withdraw-date-col {
  width: 90px;
  white-space: nowrap;
}
.email-col {
  max-width: 120px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal; /* ✅ позволяет перенос строк */
  word-break: break-word; /* переносит по словам/символам */
}
.table-clients td:nth-child(6),
.table-clients th:nth-child(6) {
  white-space: nowrap;
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
}
th.email-column,
td.email-column {
  max-width: 150px;
  width: 150px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.transfer-type-col {
  width: 100px;
  white-space: nowrap;
}
.phone-col {
  width: 100px;
  white-space: nowrap;
}
.manager-col {
  width: 70px;
  white-space: nowrap;
  text-align: center;
}
.client-status {
  width: 140px;
  white-space: nowrap;
  text-align: center;
}
.last-col {
  width: 100px;
  white-space: nowrap;
}

    table {
      width: 100%;
      border-collapse: collapse;
      text-align: center;
    }
th, td {
      padding: 12px;
      text-align: center;
      font-size: 14px;
      border-left: 1px solid #e0e0e0;
    }

     th:first-child, td:first-child {
      border-left: none;
    }
      th {
      background-color: #f0f2f5;
      color: #444;
    }
 tr:nth-child(even) {
      background-color: #fafafa;
    }
    

    tr td.status-ignore { background-color: #f8d7da; }
    tr td.status-payment { background-color: #cce5ff; }
    tr td.status-waiting { background-color: #d4edda; }
    tr td.status-load { background-color: #fff3cd; }
    tr td.status-none { background-color: white; }
    .modal {
      position: fixed;
      top: 0; left: 0;
      width: 100%; height: 100%;
      background: rgba(0, 0, 0, 0.5);
      display: none;
      justify-content: center;
      align-items: center;
      z-index: 9999;
    }
    .modal-content {
      background: white;
      padding: 20px;
      max-width: 900px;
      width: 100%;
      max-height: 90vh;
      overflow-y: auto;
      box-sizing: border-box;
      border-radius: 6px;
      position: relative;
    }
    .id-col {
    width: 60px;
    white-space: nowrap;
    }
    .modal-close {
      position: absolute;
      right: 15px;
      top: 10px;
      cursor: pointer;
      font-size: 22px;
      font-weight: bold;
    }
    .add-client-btn {
      margin: 10px 0;
      padding: 8px 16px;
      background: #4CAF50;
      color: white;
      border: none;
      cursor: pointer;
      width: auto;
      max-width: 200px;
      border-radius: 4px;
    }
    .client-modal-tabs .client-tab {
      display: inline-block;
      background: #ddd;
      padding: 6px 12px;
      margin: 5px 5px 0 0;
      cursor: pointer;
      border-radius: 4px 4px 0 0;
      user-select: none;
    }
    .client-modal-tabs .client-tab.active {
      background: white;
      font-weight: bold;
      border-bottom: 2px solid black;
    }
    .client-tab-content {
      display: none;
      padding: 10px 0 0 0;
      border-top: 1px solid #ccc;
    }
    .client-tab-content.active {
      display: block;
    }
    label {
      display: block;
      margin-top: 15px;
      font-weight: bold;
    }
    select#clientsPerPageSelect {
    max-width: 70px;
    }
    input[type="text"], input[type="email"], select, textarea, input[type="date"], input[type="datetime-local"] {
      width: 100%;
      padding: 6px;
      margin-top: 4px;
      box-sizing: border-box;
      border: 1px solid #ccc;
      border-radius: 4px;
      font-size: 14px;
    }
    textarea {
      resize: vertical;
    }
    button {
      margin-top: 15px;
      padding: 8px 16px;
      background: #2196F3;
      color: rgb(13, 13, 13);
      border: none;
      cursor: pointer;
      border-radius: 4px;
      font-size: 16px;
    }
    button:disabled {
      background: #aaa;
      cursor: not-allowed;
    }
    .icon-btn {
      cursor: pointer;
      font-size: 18px;
      border: none;
      background: none;
      color: #333;
    }
    .icon-btn:hover {
      color: #000;
    }
.client-actions {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

.btn-import-excel {

  padding: 4px 12px;
  background-color: #ccc;
  border: 8px solid #ccc;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  display: inline-block;
  line-height: normal;
}
.btn-import-excel:hover {
  background-color: #ccc;
}
    .bulk-actions {
      display: flex;
      gap: 10px;
      align-items: center;
      flex-wrap: wrap;
    }
    .bulk-actions button {
      margin-bottom: 10px; 
      background: #f44336;
      color: #fff;
      padding: 6px 14px;
      border: none;
      cursor: pointer;
      flex-shrink: 0;
      width: auto;
      border-radius: 4px;
    }
    .bulk-actions select {
      padding: 5px;
      flex-shrink: 0;
      width: 180px;
      border-radius: 4px;
      border: 1px solid #ccc;
      font-size: 14px;
    }
    #fileInput {
      margin-top: 10px;
    }
  