/* /products 著作物検索画面（jaacc.org の consumer/product/index 互換UI） */

#products h2 {
  font-size: 18px;
  color: #333;
  border-left: 4px solid #f0ad4e;
  padding-left: 10px;
  margin: 20px 0 16px;
}

#products [data-search_block] {
  background: #f8f8f8;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 16px 20px;
  margin-bottom: 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 24px;
}

#products [data-search_block] dl {
  display: flex;
  align-items: center;
  margin: 4px 0;
}

#products [data-search_block] dt {
  width: 130px;
  font-size: 13px;
  color: #333;
}

#products [data-search_block] dd {
  flex: 1;
}

#products [data-search_block] input[type=text],
#products [data-search_block] input[type=date],
#products [data-search_block] select {
  border: 1px solid #ccc;
  border-radius: 3px;
  padding: 4px 8px;
  font-size: 13px;
  width: 100%;
  box-sizing: border-box;
}

#products [data-search_block] input[type=date] {
  width: 150px;
}

#products [data-search_block] dl:last-child dd {
  display: flex;
  align-items: center;
  gap: 8px;
}

#products [data-search_btns] {
  display: flex;
  justify-content: center;
  margin: 16px 0 8px;
}

#products [data-search_btns] button[data-search] {
  background: #f0ad4e;
  color: #fff;
  border: 1px solid #eea236;
  border-radius: 4px;
  padding: 8px 32px;
  font-size: 14px;
  cursor: pointer;
}

#products [data-search_btns] button[data-search]:hover {
  background: #ec971f;
}

#products [data-search_note] {
  font-size: 12px;
  color: #666;
  margin: 8px 0 20px;
  line-height: 1.5;
}

#products [data-result_count] {
  font-size: 13px;
  color: #333;
  margin: 12px 0 8px;
}

#products table[data-product_list] {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  margin-bottom: 16px;
}

#products table[data-product_list] thead th {
  background: #f0ad4e;
  color: #fff;
  border: 1px solid #eea236;
  padding: 6px 8px;
  font-weight: 500;
  text-align: center;
  line-height: 1.3;
}

#products table[data-product_list] tbody {
  background: #fff;
}
#products table[data-product_list] tbody td {
  border: 1px solid #ddd;
  padding: 6px 8px;
  vertical-align: top;
  color: #333;
  line-height: 1.4;
}

#products table[data-product_list] tbody td small {
  color: #666;
  font-size: 11px;
}

#products table[data-product_list] tbody td[data-ta="right"] {
  text-align: right;
  white-space: nowrap;
}

#products table[data-product_list] [data-ng] {
  color: #999;
}

#products [data-pagination] {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin: 16px 0 32px;
  font-size: 13px;
}

#products [data-pagination] a {
  color: #f0ad4e;
  text-decoration: none;
  padding: 4px 10px;
  border: 1px solid #f0ad4e;
  border-radius: 3px;
  background: #fff;
}

#products [data-pagination] a:hover {
  background: #f0ad4e;
  color: #fff;
}

#products [data-pagination] .is_current {
  padding: 4px 10px;
  color: #333;
}

#products .err_block {
  background: #f2dede;
  border: 1px solid #ebccd1;
  color: #a94442;
  border-radius: 4px;
  padding: 10px 16px;
  margin: 10px 0;
  font-size: 13px;
}
