body {
  font-family: Arial, sans-serif;
  padding: 20px;
  background: #f4f4f4;
}

h1, h2 {
  color: #333;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 30px;
}

table, th, td {
  border: 1px solid #ccc;
}

th, td {
  padding: 10px;
  text-align: left;
  background: #fff;
}

form input, form textarea {
  display: block;
  margin-bottom: 10px;
  padding: 10px;
  width: 300px;
  max-width: 100%;
}

button {
  padding: 10px 20px;
  background: #2a8;
  color: white;
  border: none;
  cursor: pointer;
}

button:hover {
  background: #276;
}
form {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  max-width: 400px;
}

form input, form textarea, form select {
  display: block;
  margin-bottom: 15px;
  padding: 10px 12px;
  width: 100%;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 15px;
  box-sizing: border-box;
  transition: border 0.3s;
}

form input:focus, form textarea:focus, form select:focus {
  border-color: #2a8;
  outline: none;
}

form select {
  background: #fff;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='6' viewBox='0 0 12 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%23999' d='M6 6L0 0h12L6 6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 12px 6px;
  padding-right: 30px;
  cursor: pointer;
}
/* Общий стиль для всех селектов в таблице */
.status-select {
  padding: 6px 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
  font-weight: bold;
  outline: none;
  min-width: 120px;
  text-transform: uppercase;
  cursor: pointer;
}

/* Индивидуальные стили по классам */
.status-new {
  background-color: #e0e0e0;
  color: #333;
}

.status-inwork {
  background-color: #cce4ff;
  color: #0a3f8a;
}

.status-done {
  background-color: #d4f4d4;
  color: #146414;
}

.status-canceled {
  background-color: #ffd4d4;
  color: #9e1c1c;
}
.nav {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.nav-btn {
  padding: 10px 20px;
  background: #eee;
  border: 1px solid #ccc;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
}

.nav-btn.active {
  background: #2a8;
  color: #fff;
}
.modal-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.5);
  z-index: 9999;
  justify-content: center;
  align-items: center;
}

.modal {
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  width: 400px;
  max-width: 90%;
  box-shadow: 0 10px 20px rgba(0,0,0,0.3);
  position: relative;
}

.modal h3 {
  margin-top: 0;
}

#addOrderBtn {
  margin-top: 20px;
  padding: 10px 20px;
  background: #2a8;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}
.stats-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.stat-card {
  background: #f0f0f0;
  padding: 20px;
  font-weight: bold;
  font-size: 16px;
  border-radius: 8px;
  flex: 1 1 150px;
  text-align: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.managers-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}

.managers-table th,
.managers-table td {
  padding: 10px;
  border: 1px solid #ccc;
  text-align: center;
}
.status-select,
.manager-select,
.amount-input {
  padding: 4px 8px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 6px;
  outline: none;
  min-width: 100px;
  background-color: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.status-select:focus,
.manager-select:focus,
.amount-input:focus {
  border-color: #007bff;
  box-shadow: 0 0 2px #007bff55;
}

.amount-input {
  width: 80px;
  text-align: right;
}

/* Цвета по статусу */
.status-new {
  background-color: #fff3cd;
  border-color: #ffeeba;
}

.status-inwork {
  background-color: #cce5ff;
  border-color: #b8daff;
}

.status-done {
  background-color: #d4edda;
  border-color: #c3e6cb;
}

.status-canceled {
  background-color: #f8d7da;
  border-color: #f5c6cb;
}
.charts-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: center;
  margin-top: 20px;
}

.charts-grid canvas {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}