/* خانة البحث في تبويب «المواد» بصفحة التسجيل (scripts/patch-subject-search.mjs). */
[data-subject-filters] { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
[data-subject-filters] > * { min-width: 0; }
[data-subject-filters] > .flex { align-items: stretch; }
[data-subject-filters] > .flex > .grid { flex: 1 1 auto; }

[data-subject-search] { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; }
[data-subject-search-field] {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 14px;
  border: 2px solid #e5e7eb;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
  transition: border-color .15s, box-shadow .15s;
}
[data-subject-search-field]:hover { border-color: #fdba74; }
[data-subject-search-field]:focus-within {
  border-color: #f97316;
  box-shadow: 0 0 0 4px rgba(249, 115, 22, .16);
}
[data-subject-search-field] > svg { flex: none; color: #f97316; }
[data-subject-search-field] input {
  flex: 1 1 0;
  width: 100%;
  min-width: 0;
  height: 50px;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #111827;
  font-size: 16px;
  font-weight: 600;
}
[data-subject-search-field] input::placeholder { color: #9ca3af; font-weight: 500; opacity: 1; }
[data-subject-search-field] input::-webkit-search-cancel-button { display: none; }
[data-subject-search-field] kbd {
  flex: none;
  min-width: 26px;
  padding: 2px 8px;
  border: 1px solid #e5e7eb;
  border-bottom-width: 2px;
  border-radius: 7px;
  background: #f9fafb;
  color: #6b7280;
  font: 600 12px/1.6 ui-monospace, monospace;
  text-align: center;
}
[data-subject-search-field] button {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  border: 0;
  border-radius: 9px;
  background: #fff7ed;
  color: #c2410c;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
[data-subject-search-field] button:hover { background: #ffedd5; }
[data-subject-search-meta] {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 12px;
  padding: 0 4px;
  color: #6b7280;
  font-size: 13px;
}
[data-subject-search-meta] b { color: #c2410c; }
[data-subject-search-meta][data-empty] b { color: #b91c1c; }

@media (max-width: 640px) {
  [data-subject-search-field] kbd { display: none; }
  [data-subject-search-field] input { font-size: 15px; }
}
