.batch-entry-action {
  display: flex;
  align-items: center;
}

.batch-entry-button {
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid rgba(39, 45, 42, 0.18);
  border-radius: 6px;
  background: #fffdf8;
  color: #2d3430;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.batch-entry-button:hover {
  border-color: rgba(39, 45, 42, 0.34);
  background: #fbf6ee;
}

.batch-dialog {
  width: min(720px, calc(100vw - 32px));
  max-height: calc(100vh - 64px);
  overflow: auto;
  padding: 24px;
  border: 0;
  border-radius: 8px;
  background: #fffdf8;
  box-shadow: 0 24px 70px rgba(35, 30, 22, 0.24);
  color: #252a28;
}

.batch-dialog::backdrop {
  background: rgba(22, 24, 23, 0.36);
}

.batch-dialog h2 {
  margin: 4px 0 12px;
  font-size: 22px;
  letter-spacing: 0;
}

.batch-dialog textarea {
  box-sizing: border-box;
  width: 100%;
  min-height: 220px;
  padding: 14px;
  resize: vertical;
  border: 1px solid rgba(39, 45, 42, 0.18);
  border-radius: 6px;
  background: #fff;
  color: #252a28;
  font: inherit;
  line-height: 1.65;
}

.batch-dialog textarea:focus {
  outline: 2px solid rgba(74, 141, 248, 0.35);
  outline-offset: 0;
}

.batch-dialog .dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 16px;
}

.batch-module {
  max-width: 900px;
}

.batch-heading {
  margin-bottom: 18px;
}

.batch-heading h2 {
  margin: 4px 0 8px;
  font-size: 24px;
  letter-spacing: 0;
}

.batch-heading p {
  margin: 0;
  color: #6f6960;
  line-height: 1.6;
}

.batch-field-label {
  display: block;
  margin: 18px 0 8px;
  font-size: 13px;
  font-weight: 650;
  color: #3c433e;
}

.batch-entry-tools {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
}

.batch-entry-tools .batch-field-label {
  margin: 0;
}

.batch-entry-tools .voice-input {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid #cad7d3;
  border-radius: 6px;
  background: #fff;
  color: #2f7c73;
  font: inherit;
  font-size: 13px;
  white-space: nowrap;
  cursor: pointer;
}

.batch-entry-tools .voice-input svg {
  width: 17px;
  height: 17px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.batch-entry-tools .voice-input:hover {
  background: #f2f8f6;
}

.batch-entry-tools .voice-input.listening {
  border-color: #d0645a;
  background: #fff1ef;
  color: #b8463e;
  animation: voice-pulse 1.15s ease-in-out infinite;
}

.batch-date-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-top: 14px;
}

.batch-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #3c433e;
  font-size: 14px;
  font-weight: 600;
}

.batch-check input {
  width: 16px;
  height: 16px;
  accent-color: #4a8df8;
}

.batch-default-date {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #3c433e;
  font-size: 13px;
}

.batch-default-date input {
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid rgba(39, 45, 42, 0.18);
  border-radius: 6px;
  background: #fff;
  color: #252a28;
  font: inherit;
}

.batch-hint {
  margin: 8px 0 0;
  color: #837c72;
  font-size: 12px;
}

.batch-module textarea {
  box-sizing: border-box;
  width: 100%;
  min-height: 260px;
  padding: 16px;
  resize: vertical;
  border: 1px solid rgba(39, 45, 42, 0.18);
  border-radius: 8px;
  background: #fff;
  color: #252a28;
  font: inherit;
  line-height: 1.7;
}

.batch-module textarea:focus {
  outline: 2px solid rgba(74, 141, 248, 0.35);
  outline-offset: 0;
}

.batch-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 14px;
}

.batch-result {
  margin-top: 16px;
  padding: 14px 16px;
  border: 1px solid rgba(61, 184, 143, 0.32);
  border-radius: 8px;
  background: rgba(61, 184, 143, 0.08);
  color: #2d5b4b;
}

.batch-result[hidden] {
  display: none;
}

.batch-preview-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.batch-preview-head h3 {
  margin: 4px 0 6px;
  font-size: 20px;
  letter-spacing: 0;
}

.batch-warnings {
  margin: 0;
  color: #8a5b1e;
  font-size: 13px;
  line-height: 1.6;
}

.batch-table {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.batch-row {
  display: grid;
  grid-template-columns: 1fr 0.75fr 0.75fr 1.5fr 0.9fr 1fr 0.7fr 0.5fr;
  gap: 8px;
  align-items: end;
  padding: 12px;
  border: 1px solid rgba(39, 45, 42, 0.12);
  border-radius: 8px;
  background: #fff;
}

.batch-row label {
  display: grid;
  gap: 5px;
  min-width: 0;
  color: #5b625e;
  font-size: 12px;
  font-weight: 600;
}

.batch-row input,
.batch-row select {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 36px;
  padding: 0 9px;
  border: 1px solid rgba(39, 45, 42, 0.18);
  border-radius: 6px;
  background: #fff;
  color: #252a28;
  font: inherit;
  font-size: 13px;
}

.batch-row input:focus,
.batch-row select:focus {
  outline: 2px solid rgba(74, 141, 248, 0.35);
  outline-offset: 0;
}

.batch-row-title input {
  min-width: 160px;
}

.batch-row-details {
  grid-column: 1 / -1;
}

.batch-row-details input {
  min-width: 0;
}

.batch-estimated {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-top: 17px;
  white-space: nowrap;
}

.batch-estimated input {
  width: 15px;
  min-width: 15px;
  min-height: 15px;
  accent-color: #4a8df8;
}

.batch-row-delete {
  min-height: 36px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #a65a55;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.batch-row-delete:hover {
  background: rgba(166, 90, 85, 0.1);
}
