.clocks-container {
  padding: 20px;
  font-family: Arial, sans-serif;
  background: #f9f9f9;
  width: 100%;       /* на всю ширину */
  max-width: 100%;   /* без обмежень */
  box-sizing: border-box;
}
.clocks-title {
  color: #0055aa;
  margin-bottom: 15px;
}

/* універсальні поля */
.field-name input,
.field-timezone select,
.field-button button {
  padding: 6px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
}

/* палітра 🎨 */
.field-color {
  display: flex;
  align-items: center;
  gap: 4px;
}
.color-icon {
  font-size: 24px;
  cursor: pointer;
}
.clocks-color {
  border: none;
  background: transparent;
  width: 64px;
  height: 32px;
  cursor: pointer;
  padding: 0;
}

/* кнопка */
.clocks-button {
  background: #0055aa;
  color: #fff;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s;
  font-size: 18px;
  width: 128px;
  height: 32px;
}
.clocks-button:hover {
  background: #003f7f;
}

/* форма додавання */
.clocks-add-grid {
  display: grid;
  grid-template-columns: 2fr 2fr auto auto;
  gap: 10px;
  align-items: center;
  margin-bottom: 15px;
  width: 100%;
  box-sizing: border-box;
}

/* блок дій у два стовпчики */
.clocks-actions-grid {
  display: grid;
  grid-template-columns: 1fr 60px;
  gap: 10px;
  align-items: start;
  width: 100%;
  box-sizing: border-box;
  padding: 8px 12px; /* 8px зверху/знизу, 12px зліва/справа */
}
.clocks-edit {
  display: grid;
  grid-template-rows: auto auto; /* два рядки */
  gap: 6px;
}
.edit-row {
  display: grid;
  grid-template-columns: 1fr 1fr; /* два поля в ряд */
  gap: 8px;
  align-items: center;
}
.clocks-delete-col {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* таблиця */
.clocks-table {
  border-collapse: collapse;
  border-radius: 8px;
  width: 100%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  font-size: 14px;
}
.clocks-header th {
  background: #0055aa;
  color: #fff;
  padding: 8px;
  text-align: center;
}
.clocks-row {
  height: 100%;              /* рядок тримає висоту */
  border-bottom: 1px solid #ddd;
}
.clocks-col-sort { width: 70px; }
.clocks-col-name { width: 200px; }
.clocks-col-actions { width: 300px; }
.clocks-col-time { width: auto; }
.clocks-row td {
  padding: 6px;
  text-align: center;
  vertical-align: middle;
}
.clocks-row:hover {
  background: #f1f7ff;
}

/* стрілки сортування */
.clocks-sort {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;   /* по центру вертикально */
  gap: 4px;
  height: 100%;              /* розтягнути на висоту td */
  box-sizing: border-box;
}
.clocks-arrow {
  display: inline-block;
  width: 24px;
  height: 24px;
  line-height: 22px;
  text-align: center;
  border: 1px solid #0055aa;
  border-radius: 3px;
  background: #e6f0ff;
  color: #0055aa;
  font-size: 14px;
  cursor: pointer;
}
.clocks-arrow:hover {
  background: #0055aa;
  color: #fff;
}

.clocks-name {
  font-size: 1.4em;
  font-weight: bold;
  text-align: left;
  letter-spacing: 2px;
}

/* годинник */
.clock {
  font-size: 2.4em;
  font-family: var(--clock-font), 'Roboto Mono', monospace;
  font-weight: bold;
  letter-spacing: 2px;
}

/* кошик */
.clocks-delete {
  font-size: 22px;
  color: #fff;
  background: #cc0000;
  border-radius: 6px;
  padding: 8px 12px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s;
}
.clocks-delete:hover {
  background: #ff0000;
}
