.notice {
  border: 1px solid #cfe2ff;
  background: #eaf3ff;
  color: #154778;
  padding: 12px 14px;
  border-radius: 12px;
  margin-bottom: 14px;
  font-size: 13px;
}

.notice.error {
  border-color: #ffc9cf;
  background: #fff0f2;
  color: #8f1d2c;
}

.notice.success {
  border-color: #bdebd2;
  background: #eaf9f1;
  color: #12663d;
}

.search-grid {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 14px;
  margin-top: 18px;
}

.search-grid>label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}

.search-grid>label>span,.search-by-field legend {
  font-size: 11px;
  font-weight: 700;
}

.search-grid b {
  color: var(--red);
}

input,select {
  width: 100%;
  height: 40px;
  border: 1px solid #cfdceb;
  background: #fff;
  color: var(--text);
  border-radius: 8px;
  padding: 0 11px;
  outline: 0;
  min-width: 0;
}

input:focus,select:focus {
  border-color: #6ca9f8;
  box-shadow: 0 0 0 3px #e8f2ff;
}

.search-by-field {
  grid-column: span 2;
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}

.radio-row {
  height: 40px;
  display: flex;
  align-items: center;
  gap: 16px;
  white-space: nowrap;
}

.radio-row label {
  font-size: 11px;
  color: #314968;
}

.radio-row input {
  width: 15px;
  height: 15px;
  vertical-align: -3px;
  margin-right: 5px;
  accent-color: var(--blue);
}

.query-field {
  grid-column: span 2;
}

/* Error States and Field Feedback */
.input-error,
input.input-error,
select.input-error,
.input-with-icon.input-error input,
.input-with-icon.input-error select {
  border-color: #ef4444 !important;
  background-color: #fff9f9 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15) !important;
}

body.dark .input-error,
body.dark input.input-error,
body.dark select.input-error,
body.dark .input-with-icon.input-error input,
body.dark .input-with-icon.input-error select {
  border-color: #f87171 !important;
  background-color: rgba(239, 68, 68, 0.1) !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.25) !important;
}

.field-error-msg {
  grid-column: span 2;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: #fef2f2;
  border: 1px solid #fee2e2;
  border-radius: 8px;
  color: #dc2626;
  font-size: 12px;
  font-weight: 600;
  margin-top: 4px;
}

body.dark .field-error-msg {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.25);
  color: #fca5a5;
}

.field-error-msg .svg-icon {
  color: #dc2626;
  flex-shrink: 0;
}

body.dark .field-error-msg .svg-icon {
  color: #fca5a5;
}

.field-error-msg.hidden {
  display: none !important;
}
