/* 製品一覧のスタイル */
.product-list {
  display: grid;
  gap: 20px;
  margin: 20px 0;
}

.product-item {
  background: #ffffff;
  border: 1px solid #e1e5e9;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  transition: box-shadow 0.2s ease;
}

.product-item:hover {
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.product-item dl {
  margin: 0;
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 8px 16px;
  align-items: center;
}

.product-item dt {
  font-weight: 600;
  color: #495057;
  font-size: 14px;
  margin: 0;
}

.product-item dd {
  margin: 0;
  color: #212529;
  font-size: 14px;
}

.product-item dd strong {
  color: #0056b3;
  font-size: 16px;
}

/* ボタンスタイル */
.btn {
  display: inline-block;
  padding: 8px 16px;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-right: 8px;
}

.btn-primary {
  background: #007bff;
  color: white;
}

.btn-primary:hover {
  background: #0056b3;
}

.btn-secondary {
  background: #6c757d;
  color: white;
}

.btn-secondary:hover {
  background: #545b62;
}

.btn-danger {
  background: #dc3545;
  color: white;
}

.btn-danger:hover {
  background: #c82333;
}

/* 関連コンタクト表示エリア */
.related-contacts-section {
  grid-column: 1 / -1;
  margin-top: 12px;
}

.related-contacts-content {
  margin-top: 12px;
  padding: 12px;
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  font-size: 14px;
}
}

.email-tag {
  display: inline-block;
  background: #e3f2fd;
  color: #1976d2;
  padding: 4px 8px;
  margin: 2px 4px 2px 0;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 500;
}

/* アクションボタンエリア */
.product-actions {
  grid-column: 1 / -1;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #dee2e6;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* 編集フォームスタイル */
.edit-form-active {
  background: #fff3cd;
  border: 2px solid #ffc107;
  border-radius: 8px;
  padding: 20px;
  margin: 16px 0;
}

.edit-form-active h4 {
  margin: 0 0 16px 0;
  color: #856404;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  margin-bottom: 4px;
  font-weight: 600;
  color: #495057;
}

.form-group input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #ced4da;
  border-radius: 4px;
  font-size: 14px;
  box-sizing: border-box;
}

.form-group input:focus {
  outline: none;
  border-color: #80bdff;
  box-shadow: 0 0 0 2px rgba(0,123,255,0.25);
}

.form-group input:disabled {
  background-color: #e9ecef;
  opacity: 1;
}

/* チェックボックスコンテナ */
.checkbox-container {
  display: flex;
  align-items: center;
  margin: 16px 0;
}

.checkbox-container input[type="checkbox"] {
  margin-right: 8px;
  margin-left: 0;
}

.checkbox-container label {
  margin: 0;
  cursor: pointer;
  font-weight: 600;
  color: #0066cc;
}

/* 登録フォームスタイル */
.regist-form {
  background: #f8f9fa;
  padding: 20px;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  margin: 20px 0;
}

.regist-form label {
  display: block;
  margin-bottom: 4px;
  font-weight: 600;
  color: #495057;
}

.regist-form input[type="text"],
.regist-form input[type="date"] {
  width: 100%;
  padding: 8px 12px;
  margin-bottom: 16px;
  border: 1px solid #ced4da;
  border-radius: 4px;
  font-size: 14px;
  box-sizing: border-box;
}

.regist-form input:focus {
  outline: none;
  border-color: #80bdff;
  box-shadow: 0 0 0 2px rgba(0,123,255,0.25);
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .product-item dl {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  
  .product-item dt {
    font-weight: 600;
    margin-top: 8px;
  }
  
  .product-item dd {
    margin-bottom: 8px;
  }
  
  .product-actions {
    flex-direction: column;
  }
}

/* 空状態メッセージ */
.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: #6c757d;
  font-style: italic;
}

/* 関連コンタクトのスタイル */
.email-tag {
  display: inline-block;
  background-color: #e3f2fd;
  color: #1976d2;
  padding: 2px 8px;
  margin: 2px;
  border-radius: 12px;
  font-size: 0.9em;
  border: 1px solid #bbdefb;
}

.loading {
  color: #666;
  font-style: italic;
}

/* EID一覧のスタイル */
.eid-list {
  display: grid;
  gap: 20px;
  margin: 20px 0;
}

.eid-item {
  background: #ffffff;
  border: 1px solid #e1e5e9;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  transition: box-shadow 0.2s ease;
  border-left: 4px solid #2196f3; /* EIDを区別するための青いアクセント */
}

.eid-item:hover {
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.eid-item dl {
  margin: 0;
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 8px 16px;
  align-items: center;
}

.eid-item dt {
  font-weight: 600;
  color: #495057;
  font-size: 14px;
  margin: 0;
}

.eid-item dd {
  margin: 0;
  color: #212529;
  font-size: 14px;
}

.eid-item dd strong {
  color: #1976d2;
  font-size: 16px;
}

/* EIDステータス表示 */
.eid-status {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
}

.eid-status.status-active {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.eid-status.status-renewal-period {
  background: #fff3cd;
  color: #856404;
  border: 1px solid #ffeaa7;
}

.eid-status.status-expiring-soon {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.eid-status.status-expired {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* EIDアクションボタンエリア */
.eid-actions {
  grid-column: 1 / -1;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #dee2e6;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* EID編集フォームスタイル */
.edit-eid-form {
  background: #e3f2fd;
  border: 2px solid #2196f3;
  border-radius: 8px;
  padding: 20px;
  margin: 16px 0;
}

.edit-eid-form h4 {
  margin: 0 0 16px 0;
  color: #1565c0;
}

/* EID登録フォームスタイル */
.eid-register .regist-form {
  border-left: 4px solid #2196f3;
}

/* レスポンシブ対応（EID用） */
@media (max-width: 768px) {
  .eid-item dl {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  
  .eid-item dt {
    font-weight: 600;
    margin-top: 8px;
  }
  
  .eid-item dd {
    margin-bottom: 8px;
  }
  
  .eid-actions {
    flex-direction: column;
  }
}
